piperSubplot: Piper Diagram

View source: R/piperSubplot.R

piperSubplotR Documentation

Piper Diagram

Description

Plots the Piper diagram projected from the two trilinear diagrams on either side (support function).

Usage

piperSubplot(x, y, 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, x1title = "x1", y1title = "y1", x2title = "x2",
  y2title = "y2", plot = TRUE)

Arguments

x

x-axis coordinate values (derived from the cation z-axis).

y

y-axis coordinate values (derived from the anion y-axis).

what

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

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.

x1title

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

y1title

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

x2title

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

y2title

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

plot

logical, if TRUE, then 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 transformed x- and y-coordinate values.

See Also

piperPlot


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