powered by
this function displays a boxplot graph from a data frame containing x-axis categories and numeric values using ggplot2.
plot_boxplot(data, label_x = "", label_y = "", colors = NULL, barwidth = 0.25)
returns a ggplot graphic
data.frame contain x, value, and variable
x-axis label
y-axis label
color vector
width of bar
grf <- plot_boxplot(iris, colors="white") plot(grf)
Run the code above in your browser using DataLab