| barplot.acomp {compositions} | R Documentation |
Compositions and amounts dispalyed as bar plots.
## S3 method for class 'acomp':
barplot(height,...,legend.text=TRUE,beside=FALSE,total=1)
## S3 method for class 'rcomp':
barplot(height,...,legend.text=TRUE,beside=FALSE,total=1)
## S3 method for class 'aplus':
barplot(height,...,legend.text=TRUE,beside=TRUE)
## S3 method for class 'rplus':
barplot(height,...,legend.text=TRUE,beside=TRUE)
height |
an acomp, rcomp, aplus, or rplus object giving amounts to be displayed |
... |
further graphical parameters as in
barplot |
legend.text |
same as legend.text in barplot |
beside |
same as beside in barplot |
total |
The total to be used in displaying the composition, typically 1, 100 or the number of parts |
The functions are essentially light-weighted wrappers for
barplot, just adding an adequate default
behavior for each of the scales.
A numeric vector (or matrix, when beside = TRUE) giving
the coordinates of all the bar midpoints drawn, as in
barchart
K.Gerald v.d. Boogaart http://www.stat.boogaart.de
acomp, rcomp, rplus
aplus, plot.acomp,
boxplot.acomp
data(SimulatedAmounts) barplot(mean(acomp(sa.lognormals[1:10,]))) barplot(mean(rcomp(sa.lognormals[1:10,]))) barplot(mean(aplus(sa.lognormals[1:10,]))) barplot(mean(rplus(sa.lognormals[1:10,]))) barplot(acomp(sa.lognormals[1:10,])) barplot(rcomp(sa.lognormals[1:10,])) barplot(aplus(sa.lognormals[1:10,])) barplot(rplus(sa.lognormals[1:10,]))