View source: R/aesthetic-maps.r
chop | R Documentation |
Chop provides a convenient interface to the main methods of converting a continuous variable into a categorical variable.
chop(x, n = 5, method = "quantiles", midpoint = 0, digits = 2)
x |
continuous variable to chop into pieces |
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 |
digits |
number of digits to show in labels |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.