
Last chance! 50% off unlimited learning
Sale ends in
Plot histogram for each continuous feature
plot_histogram(
data,
binary_as_factor = TRUE,
geom_histogram_args = list(bins = 30L),
scale_x = "continuous",
title = NULL,
ggtheme = theme_gray(),
theme_config = list(),
nrow = 4L,
ncol = 4L,
parallel = FALSE
)
invisibly return the named list of ggplot objects
input data
treat binary as categorical? Default is TRUE
.
a list of other arguments to geom_histogram
scale of x axis. See scale_x_continuous for all options. Default is continuous
.
plot title
complete ggplot2 themes. The default is theme_gray.
a list of configurations to be passed to theme.
number of rows per page. Default is 4.
number of columns per page. Default is 4.
enable parallel? Default is FALSE
.
geom_histogram plot_density
# Plot iris data
plot_histogram(iris, ncol = 2L)
# Plot skewed data on log scale
set.seed(1)
skew <- data.frame(replicate(4L, rbeta(1000, 1, 5000)))
plot_histogram(skew, ncol = 2L)
plot_histogram(skew, scale_x = "log10", ncol = 2L)
Run the code above in your browser using DataLab