chop.breaks {ggplot2} | R Documentation |
Calculate breakpoints for chop function
chop.breaks(x, n, method, midpoint=NA)
x |
continuous variable |
n |
number of bins to chop into |
method |
method to use: quantiles (approximately equal numbers), cut (equal lengths) or pretty |
midpoint |
mid point for diverging factors |
Hadley Wickham <h.wickham@gmail.com>