points.ternary | R Documentation |
Add points to an existing ternary diagram
## S3 method for class 'ternary'
points(x, ...)
x |
an object of class |
... |
optional arguments to the generic |
tern <- ternary(Namib$PT,'Q',c('KF','P'),c('Lm','Lv','Ls'))
plot(tern,pch=21,bg='red',labels=NULL)
# add the geometric mean composition as a yellow square:
gmean <- ternary(exp(colMeans(log(tern$x))))
points(gmean,pch=22,bg='yellow')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.