geom_bxjt: Boxplot + Jitter + Mean

View source: R/geom_bxjt.R

geom_bxjtR Documentation

Boxplot + Jitter + Mean

Description

Boxplot with jitter and mean

Usage

geom_bxjt(..., fill = "#00A2CEFF", color = NA, size = 3)

Arguments

fill

fill for geom_jitter (default = "#00A2CEFF")

color

color for geom_jitter

size

size of points (default = 3)

Details

This function combines geom_boxplot, geom_jitter, and stat_summary("mean") for ggplot.

Examples


mtcars %>%
ggplot(aes(as.factor(cyl), mpg)) +
geom_bxjt()

mtcars %>%
ggplot(aes(as.factor(cyl), mpg)) +
geom_bxjt(fill = "green", color = "white")


simscr/crsp documentation built on Sept. 29, 2023, 7:09 p.m.