ternary | R Documentation |
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.
ternary(x, nam = NULL, grid = FALSE, ...)
x |
matrix with 3 columns |
nam |
names of the variables |
grid |
if TRUE the grid should be plotted |
... |
further graphical parameters, see par |
The relative proportion of each variable is computed and those points are plotted into the graphic.
No return value, creates a plot.
Peter Filzmoser <P.Filzmoser@tuwien.ac.at> http://cstat.tuwien.ac.at/filz/
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.
data(moss)
x=moss[,c("Ni","Cu","Pb")]
ternary(x,grid=TRUE,pch=3,cex=0.7,col=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.