Learn R Programming

PASWR2 (version 1.0.5)

oneway.plots: Exploratory Graphs for Single Factor Designs

Description

Function to create dotplots, boxplots, and design plot (means) for single factor designs

Usage

oneway.plots(Y, fac1, COL = c("#A9E2FF", "#0080FF"))

Arguments

Y

response variable for a single factor design

fac1

predictor variable (factor)

COL

a vector with two colors

See Also

twoway.plots, checking.plots

Examples

Run this code
# NOT RUN {
with(data = TIRE, oneway.plots(stopdist, tire))
## Similar graphs with ggplot2 
ggplot(data = TIRE, aes(tire, stopdist, fill = tire)) + 
geom_dotplot(binaxis = "y", stackdir = "center") + coord_flip() + theme_bw()
ggplot(data = TIRE, aes(tire, stopdist, fill = tire)) + geom_boxplot() +
guides(fill = "none") + theme_bw()

# }

Run the code above in your browser using DataLab