plot.ternary: Plot a ternary diagram

Description Usage Arguments See Also Examples

View source: R/plot.R

Description

Plots triplets of compositional data on a ternary diagram

Usage

1
2
3
4
## S3 method for class 'ternary'
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

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

provenance documentation built on May 29, 2017, 7:46 p.m.