Add Arrows to a ternary plot

Share:

Description

Add Arrows to a ternary plot

Usage

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

## S3 method for class 'ternarySystem'
ternaryArrows(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 the arrows. Each row is an arrow, and the columns must correspond to blrNames(s) (variable names for the bottom, left and right axis).

to

A data.frame or a matrix containing the ternary coordinates of points *to* which to draw the arrows. Each row is an arrow, and the columns must correspond to blrNames(s) (variable names for the bottom, left and right axis).

.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 arrows.

Value

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

See Also

arrows.

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