# NOT RUN {
Plot2WayANOVA(mpg ~ am * cyl, mtcars, plottype = "line")
Plot2WayANOVA(mpg ~ am * cyl,
mtcars,
plottype = "line",
overlay.type = "box",
mean.label = TRUE)
Plot2WayANOVA(mpg ~ am * vs, mtcars, confidence = .99)
# Create a new dataset
library(dplyr)
library(ggplot2)
library(stringi)
newmpg <- mpg %>%
filter(cyl != 5) %>%
mutate(am = stringi::stri_extract(trans, regex = "auto|manual"))
Plot2WayANOVA(formula = hwy ~ am * cyl,
dataframe = newmpg,
ylab = "Highway mileage",
xlab = "Transmission type",
plottype = "line",
offset.style = "wide",
overlay.type = "box",
mean.label = TRUE,
mean.shape = 20,
mean.size = 5,
mean.label.size = 5,
show.dots = TRUE)
# }
Run the code above in your browser using DataLab