resolution {ggplot2}R Documentation

Resolution

Description

Compute the "resolution" of a data vector, ie. what is the smallest non-zero

Usage

resolution(x, zero = TRUE)

Arguments

x numeric vector
zero should a zero value be automatically included in the computation of resolution

Details

If there is only one unique value, then the resolution is defined to be one.

Author(s)

Hadley Wickham <h.wickham@gmail.com>

Examples

resolution(1:10)
resolution((1:10) - 0.5)
resolution((1:10) - 0.5, FALSE)
resolution(c(1,2, 10, 20, 50))

[Package ggplot2 version 0.8.5 Index]