interpLine: Interpolation

View source: R/interpLine.R

interpLineR Documentation

Interpolation

Description

Creates a vector of interpolated points along a line drawn by one of the smwrGraphs functions.

Usage

interpLine(object, xfromy, yfromx, warn = TRUE, ...)

Arguments

object

an object created by one of the smwrGraphs functions.

xfromy

the y-axis coordinate values to use to create matching x-coordinate values. Missing values are permitted but result in missing values in the output.

yfromx

the x-axis coordinate values to use to create matching y-coordinate values. Missing values are permitted but result in missing values in the output.

warn

logical, if TRUE, then supress the warning message from probability or transformed axes plots.

...

any future additional arguments.

Details

Exactly one of xfromy or yfromx must be specified in the call.

Value

A vector of numeric values corresponding to those values in either xfromy or yfromx.

Note

The back-transformation information is not included in the output from the graphics functions. This primarily affects the transPlot function.

See Also

transPlot

Examples

## Not run: 
# See for examples of interpLine:
demo(topic="FlowDur-Measurements", package="smwrGraphs")

## End(Not run)

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