Skip to contents

See also: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6193594/

Usage

gg_boxplot_with_group(
  data,
  x,
  y,
  method = "aov",
  with_jitter = TRUE,
  label_repel = TRUE
)

Arguments

data

data

x

group variable, should be a column in data

y

values, should be a column in data

method

aov

with_jitter

add jitter points

label_repel

use ggrepel to plot label

Value

a ggplot object

Examples

 data("PlantGrowth")
 gg_boxplot_with_group(PlantGrowth, "group", "weight")