plot.oneway: Plot one-way ANOVA

Description Usage Arguments Value Examples

View source: R/plot.r

Description

plot.oneway creates group comparisons for a one-way ANOVA and gives the user an option to choose among several types of graphs.

Usage

1
2
## S3 method for class 'oneway'
plot(x, plot = "boxplot", ...)

Arguments

x

an object of class oneway

plot

a character string representing the type of plot. Default is boxplot. Other types of plot: violin and density_ridges.

...

additional arguments passed to the chosen plot function.

Value

a ggplot2 graph

Examples

1
2
3
4
fit <- oneway(mpg ~ cyl, mtcars)
plot(fit, plot = "boxplot")
plot(fit, plot = "violin")
plot(fit, plot = "density_ridges")

Rkabacoff/oneway documentation built on Dec. 8, 2020, 2:09 p.m.