Learn R Programming

agricolae (version 1.3-7)

diffograph: Plotting the multiple comparison of means

Description

It plots bars of the averages of treatments to compare. It uses the objects generated by a procedure of comparison like LSD (Fisher), duncan, Tukey (HSD), Student Newman Keul (SNK), Scheffe, Ryan, Einot and Gabriel and Welsch (REGW), Kruskal Wallis, Friedman and Waerden.

Usage

diffograph(x, main=NULL,color1="red",color2="blue",color3="black",
cex.axis=0.8,las=1,pch=20,bty="l",cex=0.8,lwd=1,xlab="",ylab="",...)

Value

x

list, object comparison test

Arguments

x

Object created by a test of comparison, group=FALSE

main

The main title (on top)

color1

non significant color

color2

significant color

color3

center line color

cex.axis

parameters of the plot()

las

parameters of the plot()

pch

parameters of the plot()

bty

parameters of the plot()

cex

parameters of the plot()

lwd

parameters of the plot()

xlab

parameters of the plot()

ylab

parameters of the plot()

...

Other parameters of the function plot()

Author

Felipe de Mendiburu

Details

The graph.diff function should be used for functions: LSD, duncan, SNK, scheffe, REGW, HSD, kruskal, friedman and waerden test.

References

Multiple comparisons theory and methods. Departament of statistics the Ohio State University. USA, 1996. Jason C. Hsu. Chapman Hall/CRC

See Also

LSD.test, HSD.test, duncan.test, SNK.test, scheffe.test, REGW.test, kruskal,friedman, waerden.test

Examples

Run this code
# Example 1
library(agricolae)
data(sweetpotato)
model<-aov(yield~virus,data=sweetpotato)
x<- LSD.test(model,"virus",alpha=0.01,group=FALSE)
diffograph(x,cex.axis=0.8,xlab="Yield",ylab="")
# Example 2
x<- REGW.test(model,"virus",alpha=0.01,group=FALSE)
diffograph(x,cex.axis=0.6,xlab="Yield",ylab="",color1="brown",color2="green")

Run the code above in your browser using DataLab