Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ternary

Ternary plot


Description

This plot shows the relative proportions of three variables in one diagramm. It is important that the proportion sum up to 100% and if the values of the variables are very different it is important to scale them to the same data range.

Usage

ternary(x, nam = NULL, grid = FALSE, ...)

Arguments

x

matrix with 3 columns

nam

names of the variables

grid

if TRUE the grid should be plotted

...

further graphical parameters, see par

Details

The relative proportion of each variable is computed and those points are plotted into the graphic.

Author(s)

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.

Examples

data(moss)
x=moss[,c("Ni","Cu","Pb")]
ternary(x,grid=TRUE,pch=3,cex=0.7,col=1)

StatDA

Statistical Analysis for Environmental Data

v1.7.4
GPL (>= 3)
Authors
Peter Filzmoser
Initial release
2020-03-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.