powered by
Faceted boxplots with points or violin plots
facet_boxplot( df, x, y, facet_var = NULL, boxplot_colors = NULL, shape = c("boxplot", "violin"), plot_points = TRUE )
a ggplot2::ggplot object
a data frame containing all the variables matching the remaining arguments
categorical variable
continuous variable
optional variable to facet data
list of colors to use as fill for boxplots
either "boxplot" or "violin"
boolean variable to overlay jittered points or not. Default is TRUE
TRUE
facet_boxplot(iris, x = "Species", y = "Sepal.Length", facet_var = "Species")
Run the code above in your browser using DataLab