NbZrY: Nb-Zr-Y

View source: R/Vermeesch2006.R

NbZrYR Documentation

Nb-Zr-Y

Description

Nb-Zr-Y tectonic discrimination diagram

Usage

NbZrY(
  Nb = NULL,
  Zr = NULL,
  Y = NULL,
  type = c("Meschede", "LDA", "QDA"),
  ternary = TRUE,
  pch = 21,
  bg = NULL,
  show.labels = FALSE,
  short = TRUE,
  ...
)

Arguments

Nb

vector with Nb 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 'Meschede' for the nominal decision boundaries of Meschede (1986).

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 tectonic affinities.

References

Meschede, M., 1986. A method of discriminating between different types of mid-ocean ridge basalts and continental tholeiites with the Nb-Zr-Y diagram. Chemical geology, 56(3-4), pp.207-218.

Examples

data(test,package='GeoplotR')
NbZrY(Nb=test[,'Nb'],Zr=test[,'Zr'],Y=test[,'Y'])

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