ternarySubplot: Piper Diagram

View source: R/ternarySubPlot.R

ternarySubplotR Documentation

Piper Diagram

Description

Plots the trilinear diagram in the Piper diagram (support function).

Usage

ternarySubplot(x, y, z, what = "points", symbol = rep(1, length(x)),
  color = rep(1, length(x)), size = rep(0.05, length(x)),
  axis.range = c(0, 100), num.labels = 6, ticks = FALSE,
  grids = !ticks, orient = "c", xtitle = "x", ytitle = "y",
  ztitle = "z", plot = TRUE)

Arguments

x

the x-ccordinate values.

y

the y-coordinate values.

z

the z-coordinate values.

what

the type of plot, must be either "points," "lines," or "none."

symbol

the symbol to use if what is "points."

color

the color of the plot.

size

the size of the symbol if what is "points."

axis.range

the range of the axes. Must be either c(0, 1) or c(0, 100).

num.labels

the number of labels to draw on each axis.

ticks

logical, if TRUE, then draw ticks.

grids

logical, if TRUE, then draw grid lines.

orient

a single character, "c" indicates clockwise orientation for x, y, and z anything else indicates counter-clockwise.

xtitle

the x-axis title (also called x-axis caption).

ytitle

the y-axis title (also called y-axis caption).

ztitle

the z-axis title (also called z-axis caption).

plot

plot the data?

Details

Support function, to be called only from piperPlot.

Value

If plot is TRUE, then the range of the user coordinates. Otherwise, the x, y, and z values are converted to 2-dimensional values.

See Also

piperPlot


USGS-R/smwrGraphs documentation built on Oct. 11, 2022, 6:11 a.m.