Description Usage Arguments Value Examples
- Does the automatic bucketing for the plot. Really just cribbing on hist$breaks to do the heavy work, but with some better handling of categorical variables. Also includes a switch to treat anything numeric as categorical instead.
1 2  | 
x | 
 - A vector to be bucketed.  | 
num.switch | 
 - Binary. True if we should treat x as numeric, false if categorical.  | 
Returns a list object with 2 values. $groups is a vector containing the distinct bucket values. $buckets returns the snapped values.
1 2  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.