TiZrY: Ti-Zr-Y

View source: R/Vermeesch2006.R

TiZrYR Documentation

Ti-Zr-Y

Description

Ti-Zr-Y tectonic discrimination diagram

Usage

TiZrY(
  Ti = NULL,
  Zr = NULL,
  Y = NULL,
  type = c("Pearce", "LDA", "QDA"),
  ternary = TRUE,
  pch = 21,
  bg = NULL,
  show.labels = FALSE,
  short = TRUE,
  ...
)

Arguments

Ti

vector with Ti concentrations (ppm)

Zr

vector with Zr concentrations (ppm)

Y

vector with Y concentrations (ppm)

type

either 'LDA' for linear discriminant analysis, 'QDA' for quadratic discriminant analysis, or 'Pearce' for the nominal decision boundaries of Pearce and Cann (1973).

ternary

logical. If FALSE, produces a logratio plot. Only used if type is LDA or QDA.

pch

plot character. See ?par for details.

bg

fill colour for the plot character.

show.labels

logical. If TRUE, labels the discrimination fields.

short

logical. If TRUE, uses abbreviated labels for the discrimination fields.

...

additional arguments for the generic points function.

Value

if type='LDA' or type='QDA', a list with components class, posterior and x; otherwise a table with labels for MORB, IAB and OIB.

References

Pearce, J. A., and Cann, J. R., 1973, Tectonic setting of basic volcanic rocks determined using trace element analyses: Earth and Planetary Science Letters, v. 19, no. 2, p. 290-300.

Examples

data(test,package='GeoplotR')
TiZrY(Ti=wtpct2ppm(test[,'TiO2']),
      Zr=test[,'Zr'],Y=test[,'Y'],
      type='QDA',plot='ternary')

pvermees/GeoplotR documentation built on Aug. 20, 2024, 4:45 a.m.