group.plot: Plot multicompare result

Description Usage Arguments Author(s) References See Also Examples

Description

This function plots bars of the averages of treatments to compare. It uses the objects generated by a procedure of comparison like LSD, HSD, etc. It can also display the 'average' value over each bar in a bar chart.

Usage

1
group.plot(object, x.lbls, y.lbls = NULL, y.zero = NULL, alpha = 0.05, ...)

Arguments

object

Object created by a test of comparison from agricolae

x.lbls

x axis label

y.lbls

y axis label

y.zero

y axis tick from zero (0, default), or we can set least y axis tick.

alpha

Significent levels, default is 0.05.

...

Parameters of the function barplot()

Author(s)

Yuanzhen Lin <yzhlinscau@163.com>

References

Yuanzhen Lin. R & ASReml-R Statistics. China Forestry Publishing House. 2016

See Also

Website for instant update: yzhlin-asreml.ys168.com

Examples

1
2
3
4
5
library(agricolae)
data(sweetpotato)
model<-aov(yield~virus,data=sweetpotato)
comparison<- LSD.test(model,"virus",alpha=0.01)
group.plot(comparison,"virus",alpha=0.01)

yzhlinscau/AAfun documentation built on May 21, 2020, 2:19 p.m.