| plot_boxplot | R Documentation |
Boxplots for each numeric column of a data.frame.
plot_boxplot(data, label_x = "", label_y = "", colors = NULL, barwidth = 0.25)
data |
data.frame with one or more numeric columns |
label_x |
x‑axis label |
label_y |
y‑axis label |
colors |
optional fill color for boxes |
barwidth |
width of the box (numeric) |
The data is melted to long format and a box is drawn per original column. If colors is provided,
a constant fill is applied to all boxes. Use barwidth to control box width.
returns a ggplot2::ggplot graphic
grf <- plot_boxplot(iris, colors="white")
plot(grf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.