Learn R Programming

robCompositions (version 2.0.0)

ternaryDiagAbline: Adds a line to a ternary diagram.

Description

A low-level plot function which adds a line to a high-level ternary diagram.

Usage

ternaryDiagAbline(x, ...)

Arguments

x
Two-dimensional data set in isometric log-ratio transformed space.
...
Additional graphical parameters passed through.

Value

no values are returned.

Details

This is a small utility function which helps to add a line in a ternary plot from two given points in an isometric transformed space.

See Also

ternaryDiag

Examples

Run this code

data(coffee)
x <- coffee[,2:4]
ternaryDiag(x, grid=FALSE)
ternaryDiagAbline(data.frame(z1=c(0.01,0.5), z2=c(0.4,0.8)), col="red")

Run the code above in your browser using DataLab