points.ternary: Ternary point plotting

Description Usage Arguments Examples

View source: R/ternary.R

Description

Add points to an existing ternary diagram

Usage

1
2
## S3 method for class 'ternary'
points(x, ...)

Arguments

x

an object of class ternary, or a three-column data frame or matrix

...

optional arguments to the generic points function

Examples

1
2
3
4
5
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')

provenance documentation built on May 5, 2021, 1:06 a.m.