ternary {geostats}R Documentation

ternary diagrams

Description

Plot points, lines or text on a ternary diagram.

Usage

ternary(xyz = NULL, f = rep(1, 3), labels, add = FALSE, type = "p", ...)

Arguments

xyz

an n x 3 matrix or data frame

f

a three-element vector of multipliers for xyz

labels

the text labels for the corners of the ternary diagram

add

if TRUE, adds information to an existing ternary diagram

type

one of 'n' (empty plot), 'p' (points), 'l' (lines) or 't' (text).

...

optional arguments to the points, lines or text functions.

Examples

data(ACNK,package='geostats')
ternary(ACNK,type='p',labels=c(expression('Al'[2]*'O'[3]),
                               expression('CaO+Na'[2]*'O'),
                               expression('K'[2]*'O')))

[Package geostats version 1.6 Index]