Skip to contents

This function creates a boxplot to compare a parameter between groups.

Usage

compBoxplot(par, df)

Arguments

par

A character string representing the parameter to be plotted.

df

A data frame containing the data for plotting.

Value

A ggplot2 plot.

Examples

par <- "example_par"
df <- data.frame(
    group = c("group1", "group1", "group1", "group2", "group2", "group2"),
    example_par = c(3, 7, 8, 5, 9, 6)
)
compBoxplot(par, df)