A wrapper for pretty
.
pretty_within(x, min.n = 5, xrange = range(x, na.rm = TRUE), ...)
x | Numeric vector passed to |
---|---|
min.n | Integer scalar passed to |
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
|
# Simple example ------------------------------------------------------------ set.seed(3331) x <- runif(10) pretty(x)#> [1] 0.0 0.2 0.4 0.6 0.8 1.0pretty_within(x)#> [1] 0.2 0.4 0.6 0.8range(x)#> [1] 0.02017065 0.99833339