ggTukey.data.frame | R Documentation |
ggTukey for data.frame
## S3 method for class 'data.frame'
ggTukey(obj, formula, which = 1, splt = NULL, ...)
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 |
a GGPlot2 object
library(tidyverse)
examples_url("battery.dat") %>%
read_table() %>%
mutate(across(c(Temperature, Material), factor)) %>%
ggTukey(Response~Material, splt=~Temperature)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.