## S3 method for class 'acomp':
plot(x,...,labels=names(x),
aspanel=FALSE,id=FALSE,idlabs=NULL,idcol=2,center=FALSE,
scale=FALSE,pca=FALSE,col.pca=par("col"),margin="acomp",
add=FALSE,triangle=!add,col=par("col"),axes=FALSE,
plotMissings=TRUE,
lenMissingTck=0.05,colMissingTck="red",
mp=~simpleMissingSubplot(c(0,1,0.95,1),
missingInfo,c("NM","TM",cn)),
robust=getOption("robust"))
## S3 method for class 'rcomp':
plot(x,...,labels=names(x),
aspanel=FALSE,id=FALSE,idlabs=NULL,idcol=2,center=FALSE,
scale=FALSE,pca=FALSE,col.pca=par("col"),margin="rcomp",
add=FALSE,triangle=!add,col=par("col"),axes=FALSE
,plotMissings=TRUE,
lenMissingTck=0.05,colMissingTck="red",
mp=~simpleMissingSubplot(c(0,1,0.95,1),
missingInfo,c("NM","TM",cn)),
robust=getOption("robust"))
par
)"acomp"
,
"rcomp"
and any of the variable names/column numbers in the
composition. If one of the columns is selectidentify
command.id=TRUE
idlabs
labelsscale
scale
cn
the names of the components in the currentpairs
.
In this case, the third component in each of the panels is chosen
according to setting of margin=
. Possible values of margin=
are:
"acomp"
, "rcomp"
and any of the variable names/column numbers in the
composition. If one of the columns is selected each panel displays a
subcomposition given by the row part, the column part and
the given part. If one of the classes is given the corresponding
margin acompmargin
or rcompmargin
is
used.
Ternary diagrams can be read in multiple ways. Each corner of the
triangle corresponds to an extreme composition containing only the part
displayed in that corner. Points on the edges correspond to
compositions containing only the parts in the adjacent corners. The
relative amounts are displayed by the distance to the opposite
corner (so-called barycentric coordinates). The individual portions
of any point can be infered by drawing a line through the investigated point,
and parallel to the edge opposite to the corner of the part of interest.
The portion of this part is constant along the line. Thus we can read it
on the sides of the ternary diagram, where the line crosses its borders.
Note that these isoPortionLines
remain straight under an
arbitrary perturbation.plot.aplus
, plot3D
(for 3D plot),
kingTetrahedron
(for 3D-plot model export),
qqnorm.acomp
,boxplot.acomp
data(SimulatedAmounts)
plot(acomp(sa.lognormals))
plot(acomp(sa.lognormals),axes=TRUE)
plot(rcomp(sa.lognormals))
plot(rcomp(sa.lognormals5))
plot(acomp(sa.lognormals5),pca=TRUE,col.pca="red")
plot(rcomp(sa.lognormals5),pca=TRUE,col.pca="red",axes=TRUE)
Run the code above in your browser using DataLab