chop {ggplot2} | R Documentation

## Chop

### Description

Chop a continuous variable into a categorical variable.

### Usage

    chop(x, n=5, method="quantiles", midpoint=0, digits=2)

### Arguments

`x` |
`n` |
`method` |
`midpoint` |
`digits` |

### Details

Chop provides a convenient interface to the main methods of converting a continuous variable into a categorical variable.

### Author(s)

Hadley Wickham <h.wickham@gmail.com>

### See Also

`chop.breaks` to get breaks used

### Examples

[Package ggplot2 version 0.5.5 Index]