Plot histogram for each continuous feature

plot_histogram(data, binary_as_factor = TRUE,
  geom_histogram_args = list(bins = 30L), title = NULL,
  ggtheme = theme_gray(), theme_config = list(), nrow = 4L,
  ncol = 4L, parallel = FALSE)

Arguments

data

input data

binary_as_factor

treat binary as categorical? Default is TRUE.

geom_histogram_args

a list of other arguments to geom_histogram

title

plot title

ggtheme

complete ggplot2 themes. The default is theme_gray.

theme_config

a list of configurations to be passed to theme.

nrow

number of rows per page. Default is 4.

ncol

number of columns per page. Default is 4.

parallel

enable parallel? Default is FALSE.

Value

invisibly return the named list of ggplot objects

See also

geom_histogram plot_density

Examples

# Plot iris data plot_histogram(iris, nrow = 2L, ncol = 2L)
# Plot random data set.seed(1) data <- data.frame(replicate(16L, rnorm(50))) plot_histogram(data)