powered by
Remove close values from a numeric vector that are not at the outer limtis. This is useful for removing axis breaks that overlap when plotting.
rmClose(x, minfrac = 0.05)
a sorted numeric vector of non-close values of x
x
a numeric vector with no NAs
NA
minimum allowed spacing between consecutive ordered x, as a fraction of the range of x
Frank Harrell
rmClose(c(1, 2, 4, 47, 48, 49, 50), minfrac=0.07)
Run the code above in your browser using DataLab