plot.ternary: Plot a ternary diagram

View source: R/ternary.R

plot.ternaryR Documentation

Plot a ternary diagram

Description

Plots triplets of compositional data on a ternary diagram

Usage

## S3 method for class 'ternary'
plot(
  x,
  type = "grid",
  pch = NA,
  pos = NULL,
  labels = names(x),
  showpath = FALSE,
  bg = NA,
  col = "cornflowerblue",
  ticks = seq(0, 1, 0.25),
  ticklength = 0.02,
  lty = 2,
  lwd = 1,
  ...
)

Arguments

x

an object of class ternary, or a three-column data frame or matrix

type

adds annotations to the ternary diagram, one of either empty, grid, 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)

ticks

vector of tick values between 0 and 1

ticklength

number between 0 and 1 to mark the length of the ticks

lty

line type for the annotations (see type)

lwd

line thickness for the annotations

...

optional arguments to the generic points function

See Also

ternary

Examples

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 Aug. 28, 2023, 5:07 p.m.