Learn R Programming

gginference (version 0.1.3)

ggaov: Anova F test plot

Description

Visualise anova F-test to determine whether group means are equal

Usage

ggaov(t, alpha=0.05, colaccept="lightsteelblue1", 
colreject="grey84", colstat="navyblue")

Arguments

t

an object of class aov

alpha

alpha level for finding critical F value

colaccept

color for the acceptance region of the test

colreject

color for the area of rejection of the test

colstat

color of the statistic of the test line

Examples

Run this code
# NOT RUN {
# 21-th day
chick21 <- ChickWeight[ChickWeight$Time == 21,]
chickaov <- aov(weight~Diet, data = chick21)
summary(chickaov)

ggaov(chickaov, colaccept = "grey89", colreject = "black")

# }

Run the code above in your browser using DataLab