| pretty_range {ggeffects} | R Documentation |
Creates an evenly spaced, pretty sequence of numbers for a range of a vector.
pretty_range(x)
x |
A numeric vector. |
A numeric vector with a range corresponding to the minimum and maximum
values of x.
library(sjmisc) data(efc) x <- std(efc$c12hour) x # pretty range for vectors with decimal points pretty_range(x) # pretty range for large range pretty_range(1:1000)