Learn R Programming

robCompositions (version 1.4.4)

ternaryDiag: Ternary diagram

Description

This plot shows the relative proportions of three variables (compositional parts) in one diagramm. Before plotting, the data are scaled.

Usage

ternaryDiag(x, name = colnames(x), grid = TRUE, gridCol=grey(0.6), ...)

Arguments

x
matrix or data.frame with 3 columns
name
names of the variables
grid
if TRUE the grid is plotted
gridCol
color for the grid lines
...
further parameters, see, e.g., par()

Details

The relative proportions of each variable are plotted.

References

C. Reimann, P. Filzmoser, R.G. Garrett, and R. Dutter: Statistical Data Analysis Explained. Applied Environmental Statistics with R. John Wiley and Sons, Chichester, 2008.

See Also

ternary

Examples

Run this code
data(arcticLake)
ternaryDiag(arcticLake)

Run the code above in your browser using DataLab