powered by
Add lines to an existing ternary diagram
# S3 method for ternary lines(x, ...)
an object of class ternary, or a three-column data frame or matrix
ternary
optional arguments to the generic lines function
lines
tern <- ternary(Namib$PT,'Q',c('KF','P'),c('Lm','Lv','Ls')) plot(tern,pch=21,bg='red',labels=NULL) middle <- matrix(c(0.01,0.49,0.01,0.49,0.98,0.02),2,3) lines(ternary(middle))
Run the code above in your browser using DataLab