pretty_within: Pretty numbers within a range.

Description Usage Arguments Examples

Description

A wrapper for pretty.

Usage

1
pretty_within(x, min.n = 5, xrange = range(x, na.rm = TRUE), ...)

Arguments

x

Numeric vector passed to pretty.

min.n

Integer scalar passed to pretty.

xrange

Numeric vector of length 2. Indicates the range in which the output vector should lie on.

...

Further arguments passed to the method.

The only difference with pretty is that this function subsets the resulting vector as

tick[(tick >= xrange[1]) & (tick <= xrange[2])]

Examples

1
2
3
4
5
6
# Simple example ------------------------------------------------------------
set.seed(3331)
x <- runif(10)
pretty(x)
pretty_within(x)
range(x)


Search within the netdiffuseR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.