plot_boxplot {daltoolbox}R Documentation

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)

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

Value

returns a ggplot2::ggplot graphic

Examples

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

[Package daltoolbox version 1.2.727 Index]