powered by
pretty
pretty_within(x, min.n = 5, xrange = range(x, na.rm = TRUE), ...)
The only difference with pretty is that this function subsets the resulting vector as
tick[(tick >= xrange[1]) & (tick <= xrange[2])]<="" code="">=>
# Simple example ------------------------------------------------------------ set.seed(3331) x <- runif(10) pretty(x) pretty_within(x) range(x)
Run the code above in your browser using DataLab