ggTukey.TukeyHSD | R Documentation |
Plot Tukey's HSD test via GGplot2.
## S3 method for class 'TukeyHSD'
ggTukey(obj, which = 1, ...)
obj |
a TukeyHSD object |
which |
the index of the comparison. Used when the formula in the undelying aov call has more than one term. |
... |
further parameters (currently unused) |
a GGPlot2 object
TukeyHSD()
ggTukey.data.frame()
ggTukey.TukeyHSD()
]]
library(tidyverse)
examples_url("battery.dat") %>%
read_table() %>%
mutate(across(c(Temperature, Material), factor)) %>%
filter(Temperature==15) %>%
aov(Response~Material, data=.) %>%
TukeyHSD() %>%
ggTukey()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.