# NOT RUN {
# Plot iris dataset by "Species" (discrete)
plot_boxplot(iris, by = "Species")
# Plot mtcars dataset by "mpg" (continuous)
plot_boxplot(mtcars, "mpg")
# Plot with preset ggplot2 themes
library(ggplot2)
plot_boxplot(iris, by = "Species", ggtheme = theme_light())
plot_boxplot(iris, by = "Species", ggtheme = theme_minimal(base_size = 20))
# Plot bar charts with customized theme components
plot_boxplot(iris,
by = "Species",
theme_config = list(
"plot.background" = element_rect(fill = "yellow"),
"aspect.ratio" = 1
))
# }
Run the code above in your browser using DataLab