plot_boxplot_class | R Documentation |
plot boxplot per class
plot_boxplot_class(
data,
class_label,
label_x = "",
label_y = "",
colors = NULL
)
data |
data.frame contain x, value, and variable |
class_label |
name of attribute for class label |
label_x |
x-axis label |
label_y |
y-axis label |
colors |
color vector |
ggplot graphic
grf <- plot_boxplot_class(iris |> dplyr::select(Sepal.Width, Species),
class = "Species", colors=c("red", "green", "blue"))
plot(grf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.