Learn R Programming

plgraphics (version 1.2)

plinnerrange: 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)

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.

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.

Author

Werner A. Stahel

See Also

robrange, plcoord

Examples

Run this code
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"])

Run the code above in your browser using DataLab