Learn R Programming

compositions (version 0.9-11)

boxplot: Displaying compositions and amounts by boxplots

Description

For the different interpretations of amount data a different type of boxplot is feasible. Thus different boxplots are drawn.

Usage

## S3 method for class 'acomp':
boxplot(x,fak=NULL,\dots,
                         xlim=x.lim,ylim=c(minq,maxq),log=TRUE,
                         panel=vp.logboxplot,dots=!boxes,boxes=TRUE)
## S3 method for class 'rcomp':
boxplot(x,fak=NULL,\dots,
                         xlim=x.lim,ylim=c(0,1),log=FALSE,
                         panel=vp.boxplot,dots=!boxes,boxes=TRUE)
## S3 method for class 'aplus':
boxplot(x,fak=NULL,\dots,log=TRUE)
## S3 method for class 'rplus':
boxplot(x,fak=NULL,\dots,ylim=c(0,max(x)),log=FALSE)
vp.boxplot(x,y,...,dots=FALSE,boxes=TRUE,xlim,ylim,log,notch=FALSE) 
vp.logboxplot(x,y,...,dots=FALSE,boxes=TRUE,xlim,ylim,log,notch=FALSE)

Arguments

x
a dataset
fak
a factor to split the dataset, not yet implemented in aplus and rplus
xlim
x-limits of the plot
ylim
y-limits of the plot
log
logical indicating whether ploting should be done on log scale
panel
the panel function to be used or a list of multiple panel functions
...
further graphical parameters
dots
a logical indicating whether the points should be drawn
boxes
a logical indicating the boxes should be drawn
y
used by pairs
notch
should the boxes be notched

Details

vp.boxplot and vp.logboxplot are only used as panel functions.

See Also

plot.acomp, qqnorm.acomp

Examples

Run this code
data(SimulatedAmounts)
boxplot(acomp(sa.lognormals))
boxplot(rcomp(sa.lognormals))
boxplot(aplus(sa.lognormals))
boxplot(rplus(sa.lognormals))

Run the code above in your browser using DataLab