facet_boxplot | R Documentation |
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
)
df |
a data frame containing all the variables matching the remaining arguments |
x |
categorical variable |
y |
continuous variable |
facet_var |
optional variable to facet data |
boxplot_colors |
list of colors to use as fill for boxplots |
shape |
either "boxplot" or "violin" |
plot_points |
boolean variable to overlay jittered points or not. Default is |
a ggplot2::ggplot object
facet_boxplot(iris, x = "Species", y = "Sepal.Length", facet_var = "Species")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.