Draw a sequence of ternary segments on a triangle plot

Share:

Description

Draw a sequence of ternary segments on a triangle plot

Usage

1
2
3
4
ternarySegments(s, from, to, ...)

## S3 method for class 'ternarySystem'
ternarySegments(s, from, to, .plot = TRUE, ...)

Arguments

s

A ternarySystem object, or a character string naming a pre-defined ternarySystem. If missing, set to default.

from

A data.frame or a matrix containing the ternary coordinates of points *from* which to draw.

to

A data.frame or a matrix containing the ternary coordinates of points *to* which to draw.

.plot

Single logical value. Set to FALSE if you don't want to plot the graphical element and simply returns them as x-y coordinates (or Spatial* objects if sp is set to TRUE in tpPar).

...

Additional parameters passed to segments.

Value

Invisibly returns the graphical element as x-y coordinates or a Spatial* objects (see .plot).

See Also

segments.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.