View source: R/oneway.barplot.R
oneway.barplot | R Documentation |
The function could be used as plotting a one-way barplot. In addition, the figure will be added lowercase on bars automatically by means of HSD.test function in agricolae package.
oneway.barplot(data = data, response = response, x.factor = x.factor, method = 'HSD.test', alpha=0.05, ...)
data |
a dataframe file.
response |
a continous variable.
x.factor |
a category variable on x axis.
method |
one of multiple contrast approach in HSD.test
, duncan.test
, LSD.test
etc in agricolae package. The default is Tukey HSD.test.
data(leaflife, package='smatr')
par(xpd=TRUE)
oneway.barplot(data=leaflife,response=lma,x.factor=site)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.