powered by
This function creates boxplot for each continuous feature based on a selected feature.
plot_boxplot(data, by, binary_as_factor = TRUE, geom_boxplot_args = list(), title = NULL, ggtheme = theme_gray(), theme_config = list(), nrow = 3L, ncol = 4L, parallel = FALSE)
input data
feature name to be broken down by. If selecting a continuous feature, boxplot will be grouped by 5 equal ranges, otherwise, all existing categories for a discrete feature.
treat binary as categorical? Default is TRUE.
TRUE
a list of other arguments to geom_boxplot
plot title
complete ggplot2 themes. The default is theme_gray.
a list of configurations to be passed to theme.
number of rows per page
number of columns per page
enable parallel? Default is FALSE.
FALSE
invisibly return the named list of ggplot objects
geom_boxplot
# NOT RUN { plot_boxplot(iris, by = "Species", nrow = 2L, ncol = 2L) plot_boxplot(iris, by = "Species", geom_boxplot_args = list("outlier.color" = "red")) # }
Run the code above in your browser using DataLab