chop {ggplot} | R Documentation

## Chop

### Description

Chop a continuous variable into a categorical variable.

### Usage

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

### Arguments

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

### 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>

### Examples

[Package ggplot version 0.2.2 Index]