plot_distributions | R Documentation |
Particularly in exploratory data analysis, it can be instructive to see histograms or density charts.
plot_distributions(
data,
var_names = NULL,
plot_type = c("auto", "histogram", "density"),
hist_align_y = FALSE,
plot_theme = NULL
)
data |
A dataframe - if var_names is NULL, all numeric variables in x will be used, otherwise those included in var_names will be selected |
var_names |
A named character vector with new variable names or a tibble as provided by |
plot_type |
Type of plot that should be produced - |
hist_align_y |
Should histograms use the same y-axis, so that bin heights are comparable? Defaults to FALSE |
plot_theme |
Additional theme_ commands to be added to each plot |
A list of plots
## Not run:
plot_distributions(mtcars, var_names = c(wt = "Weight", mpg = "Efficiency",
am = "Transmission", gear = "Gears"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.