boxplot: Plot a boxplot with the magma color scheme and an option to...

Description Usage Arguments Value Examples

View source: R/boxplot.R

Description

Plot a boxplot with the magma color scheme and an option to facet.

Usage

1
boxplot(df, x, y, facet = FALSE)

Arguments

df

Dataframe containing the variables for plotting

x

Column name of the categorical variable to view the distribution of

y

Column name containing the numerical variables to assign boxes to

facet

Determines whether separate graphs will be created for each category

Value

a ggplot object

Examples

1
2
penguins_data <- palmerpenguins::penguins
boxplot(penguins_data, species, flipper_length_mm, facet = TRUE)

UBC-MDS/magmavizR documentation built on Feb. 6, 2022, 9:41 p.m.