Boxplots using ggplot2
Usage
gg_boxplots(
data,
x,
y,
group_var = NULL,
jitter_points = FALSE,
horizontal = FALSE,
point_size = 1,
color_palette = NA,
show_mean = FALSE,
...
)
Arguments
- data
provided dataset
- x
A character string indicating the factor of the data
- y
A character string indicating the response of the data
- group_var
A character string indicating the groups for facet_wrap
- jitter_points
Overlay jittered points to boxplots. Default is FALSE.
- horizontal
Determine whether to change the orientation of the plot. Default is FALSE
- point_size
Change size of points (outliers) in boxplots
- color_palette
A character string indicating the color map option to use. Eight options are available: "viridis","cividis","magma","inferno","plasma","rocket","mako","turbo"
- show_mean
Display the mean for each boxplot. Default is FALSE
- ...
additional parameters to be given to viridisPalette, such as alpha and direction