plinnerrange: Inner Plotting Limits

View source: R/pl.R

plinnerrangeR Documentation

Inner Plotting Limits

Description

Calculates inner limits for plotting, based on a robust estimate of the range.

Usage

plinnerrange(innerrange, data, factor = 4, FUNC = robrange)

Arguments

innerrange

logical: Should range be calculated? If FALSE, the result will contain only the values FALSE. If it is a list or matrix of the approriate size, it will be returned as is.

data

vector or data.frame for which the range(s) will be calculated

factor

expansion of the calculated robust range to yield the plotting range

FUNC

function used to calculate the robust range. The factor will be handed over to FNC as the argument fac.

Value

Matrix of 2 rows giving the ranges to be used as inner plotting ranges for the variables. If innerrange is such a matrix or data.frame, it will be returned as is.

Author(s)

Werner A. Stahel

See Also

robrange, plcoord

Examples

data(d.blast)
dd <- d.blast[,c("charge","distance","tremor")]
( t.ipl <- plinnerrange(TRUE, dd) )
plot(dd[,"tremor"], plcoord(dd[,"tremor"], t.ipl[,"tremor"]))
abline(h=t.ipl[,"tremor"])

plgraphics documentation built on Oct. 19, 2023, 3 p.m.