Learn R Programming

provenance (version 4.4)

points.ternary: Ternary point plotting

Description

Add points to an existing ternary diagram

Usage

# S3 method for 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

Run this code
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')

Run the code above in your browser using DataLab