Description Usage Arguments Author(s) References See Also Examples
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.
1 | group.plot(object, x.lbls, y.lbls = NULL, y.zero = NULL, alpha = 0.05, ...)
|
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() |
Yuanzhen Lin <yzhlinscau@163.com>
Yuanzhen Lin. R & ASReml-R Statistics. China Forestry Publishing House. 2016
Website for instant update: yzhlin-asreml.ys168.com
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.