cut_number {ggplot2}R Documentation

Discretise continuous variable, equal number of points.

Description

Cut numeric vector into intervals containing equal number of points.

Usage

cut_number(x, n = NULL, ...)

Arguments

x numeric vector
n number of intervals to create, OR
... length of each interval
other arguments passed on to cut

Author(s)

Hadley Wickham <h.wickham@gmail.com>

See Also

cut_interval

Examples

table(cut_number(runif(1000), n = 10))

[Package ggplot2 version 0.8.2 Index]