geom_boxjitter: Create boxplots overlaid with datapoints, displaying exact y...

geom_boxjitterR Documentation

Create boxplots overlaid with datapoints, displaying exact y values and jittered x values

Description

see tidyExt vignette

Usage

geom_boxjitter(
  ...,
  point_size = 0.5,
  point_col = "black",
  box_alpha = 1,
  jitterheight = 0,
  jitterwidth = 0.25
)

Arguments

point_size

size of points; default is 0.5

point_col

point colour; default is black

box_alpha

alpha for boxplot background ; default is 1

jitterheight

jitter height; default is 0

jitterwidth

jitter width; default is 0.25

Value

A ggplot.

Examples

require(ggplot2)
mpg |> ggplot2::ggplot(aes(x=class, y=cty)) +
 geom_boxjitter(notch = FALSE, point_size = 2, point_col='dodger blue')

bansell/tidyExt documentation built on July 12, 2024, 12:58 p.m.