powered by
ggTukey for data.frame
# S3 method for data.frame ggTukey(obj, formula, which = 1, splt = NULL, ...)
a GGPlot2 object
a data frame
a formula to be used in the aov call
the index of the comparison. Used when the formula in the undelying aov call has more than one term.
a formula to split the data frame
further parameters passed to TukeyHSD
TukeyHSD
library(tidyverse) examples_url("battery.dat") %>% read_table() %>% mutate(across(c(Temperature, Material), factor)) %>% ggTukey(Response~Material, splt=~Temperature)
Run the code above in your browser using DataLab