ternaryGrid-methods: Add Grid to a ternary plot

Description Usage Arguments Details Value

Description

Add Grid to a ternary plot

Usage

1
2
3
4
ternaryGrid(s, ...)

## S3 method for class 'ternarySystem'
ternaryGrid(s, side = 1:3, .plot = TRUE, ...)

Arguments

s

A ternarySystem object.

side

A vector of integer specifying which side of the plot the axis is to be drawn on. The axis is placed as follows: 1=below, 2=left, 3=right (note that this differ from axis where 3=above and 4=right). Default is to draw axis on the 3 sides.

.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 ternarySegments, except col (see details)

Details

Grid-line colors can be changed via tpPar("grid.line.col").

Value

Invisibly returns a list of data.frame with the start and end points of the grid segments for each of the 3 axis.


ternaryplot documentation built on May 2, 2019, 6:11 p.m.