TiV: Ti-V

View source: R/Vermeesch2006.R

TiVR Documentation

Ti-V

Description

Ti-V tectonic discrimination diagram

Usage

TiV(
  Ti = NULL,
  V = NULL,
  type = c("Shervais", "LDA", "QDA"),
  ternary = FALSE,
  pch = 21,
  bg = NULL,
  show.labels = FALSE,
  short = TRUE,
  xlim = NULL,
  ylim = NULL,
  ...
)

Arguments

Ti

vector with Ti concentrations (ppm)

V

vector with V concentrations (ppm)

type

either 'LDA' for linear discriminant analysis, 'QDA' for quadratic discriminant analysis, or 'Shervais' for the nominal decision boundaries of Shervais (1982).

ternary

logical. If TRUE, produces a ternary diagram. 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.

xlim

x-axis limits

ylim

y-axis limits

...

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

Shervais, J.W., 1982. Ti-V plots and the petrogenesis of modern and ophiolitic lavas. Earth and Planetary Science Letters, 59(1), pp.101-118.

Examples

data(test,package='GeoplotR')
TiV(Ti=wtpct2ppm(test[,'TiO2']),V=test[,'V'],type='Shervais')

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