lowerUpper: Plotting Range Function

Description Usage Arguments Value Examples

View source: R/utility_functions.R

Description

This function determines the lower and upper boundaries for a vector of values given a specified sub-interval for plotting purposes.

Usage

1
lowerUpper(int, dat)

Arguments

int

the desired sub-interval over the range.

dat

the vector of values over which to determine the boundaries.

Value

Returns a lower and upper boundary, multiples of the specified sub-interval.

Examples

1
2
3
4
5
d = density( rnorm(100) )
x.limit = lowerUpper( .5, d$x )
y.limit = lowerUpper( .1, d$y )
plot( x.limit, y.limit, type='n', xlab='Values', ylab='Density' )
lines(d$x,d$y)

rettopnivek/utilityf documentation built on March 1, 2021, 7:05 p.m.