Learn R Programming

provenance (version 1.5)

plot.ternary: Plot a ternary diagram

Description

Plots triplets of compositional data on a ternary diagram

Usage

"plot"(x, type = "empty", pch = NA, pos = NULL, labels = names(x), showpath = FALSE, bg = NA, col = "cornflowerblue", ...)

Arguments

x
an object of class ternary
type
adds annotations to the ternary diagram, one of either empty, QFL.descriptive, QFL.folk or QFL.dickinson
pch
plot character, see ?par for details (may be a vector)
pos
position of the sample labels relative to the plot symbols if pch != NA
labels
vector of strings to be added to the plot symbols
showpath
if x has class SRDcorrected, and showpath==TRUE, the intermediate values of the SRD correction will be plotted on the ternary diagram as well as the final composition
bg
background colour for the plot symbols (may be a vector)
col
colour to be used for the background lines (if applicable)
...
optional arguments to the generic points function

See Also

ternary

Examples

Run this code
data(Namib)
tern <- ternary(Namib$PT,'Q',c('KF','P'),c('Lm','Lv','Ls'))
plot(tern,type='QFL.descriptive',pch=21,bg='red',labels=NULL)

Run the code above in your browser using DataLab