Last chance! 50% off unlimited learning
Sale ends in
Add lines of equal portion and proportion to ternary diagrams, to serve as reference axis.
isoPortionLines(...)
# S3 method for acomp
isoPortionLines(by=0.2,at=seq(0,1,by=by),...,
parts=1:3,total=1,labs=TRUE,lines=TRUE,unit="")
# S3 method for rcomp
isoPortionLines(by=0.2,at=seq(0,1,by=by),...,
parts=1:3,total=1,labs=TRUE,lines=TRUE,unit="")
isoProportionLines(...)
# S3 method for acomp
isoProportionLines(by=0.2,at=seq(0,1,by=by),...,
parts=1:3,labs=TRUE,lines=TRUE)
# S3 method for rcomp
isoProportionLines(by=0.2,at=seq(0,1,by=by),...,
parts=1:3,labs=TRUE,lines=TRUE)
graphical arguments
numeric in [0,1]: which portions/proportions should be marked?
numeric in (0,1]: steps between protions/proportions
numeric vector subset of {1,2,3}: the variables to be marked
the total amount to be used in labeling
logical: plot the labels?
logical: plot the lines?
mark of the units e.g. "%"
Isoportion lines give lines of the same portion of one of the parts, while isoproportion line gives lines of the same ratio between two parts. The isoproportion lines are straight lines in both the Aitchison and the real geometries of the simplex, while the isoportion lines are not straight in an Aitchison sense (only in the real one). However, note that both types of lines remain straight in the real sense when perturbed (von Eynatten et al., 2002).
von Eynatten, H., V. Pawlowsky-Glahn, and J.J. Egozcue (2002) Understanding perturbation on the simplex: a simple method to better visualize and interpret compositional data in ternary diagrams. Mathematical Geology 34, 249-257
# NOT RUN {
data(SimulatedAmounts)
plot(acomp(sa.lognormals))
isoPortionLines()
plot(acomp(sa.lognormals),center=TRUE)
isoPortionLines()
plot(rcomp(sa.lognormals))
isoPortionLines()
plot(acomp(sa.lognormals))
isoProportionLines()
plot(acomp(sa.lognormals),center=TRUE)
isoProportionLines()
plot(rcomp(sa.lognormals))
isoProportionLines()
# }
Run the code above in your browser using DataLab