Description Usage Arguments Value Examples
View source: R/utility_functions.R
This function determines the lower and upper boundaries for a vector of values given a specified sub-interval for plotting purposes.
1 | lowerUpper(int, dat)
|
int |
the desired sub-interval over the range. |
dat |
the vector of values over which to determine the boundaries. |
Returns a lower and upper boundary, multiples of the specified sub-interval.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.