ggTukey.TukeyHSD: ggTukey for TukeyHSD

ggTukey.TukeyHSDR Documentation

ggTukey for TukeyHSD

Description

Plot Tukey's HSD test via GGplot2.

Usage

## S3 method for class 'TukeyHSD'
ggTukey(obj, which = 1, ...)

Arguments

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)

Value

a GGPlot2 object

See Also

TukeyHSD() ggTukey.data.frame() ggTukey.TukeyHSD()]]

Examples

library(tidyverse)
examples_url("battery.dat") %>%
  read_table() %>%
  mutate(across(c(Temperature, Material), factor)) %>%
  filter(Temperature==15) %>%
  aov(Response~Material, data=.) %>%
  TukeyHSD() %>%
  ggTukey()

adas.utils documentation built on April 12, 2025, 1:52 a.m.