Learn R Programming

plgraphics (version 1.2)

pllimits: Determine Inner Plot Range

Description

The inner plotting range is the range in which plotting functions of the regr0 package show unmodified coordinates. This function determines the range for one or more variables.

Usage

pllimits(pllim, data, limfac = NULL, FUNC=NULL)

Value

A matrix with 2 rows containing the minimum and the maximum of the inner plotting range. The columns correspond to those in

data.

Arguments

pllim

either a logical: shall an inner plotting range be determined? -- or a matrix with 2 rows and NCOL(data) rows, in which case the suitability will be checked.

data

vector or matrix or data.frame of data for which the inner plotting range is to be determined

limfac

scalar factor by which the range determined by FUNC is expanded

FUNC

function that determines the range of the data

Author

Werner A. Stahel

See Also

plcoord

Examples

Run this code
  set.seed(0)
  xx <- rt(50, df=3)
  ( pll <- pllimits(TRUE, xx) )
  sum(xxpll[2,])  ## 3

Run the code above in your browser using DataLab