powered by
Boxplots for each numeric column of a data.frame.
plot_boxplot(data, label_x = "", label_y = "", colors = NULL, barwidth = 0.25)
returns a ggplot2::ggplot graphic
data.frame with one or more numeric columns
x‑axis label
y‑axis label
optional fill color for boxes
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.
colors
barwidth
grf <- plot_boxplot(iris, colors="white") plot(grf)
Run the code above in your browser using DataLab