ggTukey.data.frame: ggTukey for data.frame

ggTukey.data.frameR Documentation

ggTukey for data.frame

Description

ggTukey for data.frame

Usage

## S3 method for class 'data.frame'
ggTukey(obj, formula, which = 1, splt = NULL, ...)

Arguments

obj

a data frame

formula

a formula to be used in the aov call

which

the index of the comparison. Used when the formula in the undelying aov call has more than one term.

splt

a formula to split the data frame

...

further parameters passed to TukeyHSD

Value

a GGPlot2 object

Examples

library(tidyverse)
examples_url("battery.dat") %>%
  read_table() %>%
  mutate(across(c(Temperature, Material), factor)) %>%
  ggTukey(Response~Material, splt=~Temperature)

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