barplot.acomp {compositions}R Documentation

Bar charts of amounts

Description

Compositions and amounts dispalyed as bar plots.

Usage

## 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)
          

Arguments

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

Details

The functions are essentially light-weighted wrappers for barplot, just adding an adequate default behavior for each of the scales.

Value

A numeric vector (or matrix, when beside = TRUE) giving the coordinates of all the bar midpoints drawn, as in barchart

Author(s)

K.Gerald v.d. Boogaart http://www.stat.boogaart.de

See Also

acomp, rcomp, rplus aplus, plot.acomp, boxplot.acomp

Examples

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,]))


[Package compositions version 0.91-6 Index]