chop {ggplot} | 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>

### Examples

[Package ggplot version 0.4.2 Index]