Skip to contents

Returns one of the figures built by profile_data().

Usage

# S3 method for class 'data_profile'
plot(
  x,
  which = c("missing", "correlation", "association", "boxplots", "pairs", "distribution"),
  column = NULL,
  ...
)

Arguments

x

A data_profile object (built with build_plots = TRUE).

which

Which figure: "missing", "correlation", "association", "boxplots", "pairs", or "distribution".

column

Column name, required when which = "distribution".

...

Ignored.

Value

A ggplot2 object (also drawn when called at the console).

Examples

p <- profile_data(iris)
# \donttest{
plot(p, which = "missing")

plot(p, which = "distribution", column = "Sepal.Length")

# }