Learn R Programming

provenance (version 1.4)

plot.ternary: Plot a ternary diagram

Description

Plots triplets of compositional data on a ternary diagram

Usage

## S3 method for class 'ternary':
plot(x, type = "empty", pch = NA, labels = names(x),
  showpath = FALSE, 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
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
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')

Run the code above in your browser using DataLab