Learn R Programming

daltoolbox (version 1.1.727)

plot_boxplot: Plot boxplot

Description

this function displays a boxplot graph from a data frame containing x-axis categories and numeric values using ggplot2.

Usage

plot_boxplot(data, label_x = "", label_y = "", colors = NULL, barwidth = 0.25)

Value

returns a ggplot graphic

Arguments

data

data.frame contain x, value, and variable

label_x

x-axis label

label_y

y-axis label

colors

color vector

barwidth

width of bar

Examples

Run this code
grf <- plot_boxplot(iris, colors="white")
plot(grf)

Run the code above in your browser using DataLab