Learn R Programming

berryFunctions (version 1.7.1)

pretty2: truncated pretty breakpoints

Description

pretty with no values outside of x range

Usage

pretty2(x, ...)

Arguments

x
object with numeric values
...
all other arguments in pretty

Details

calculates pretty(x), then removes the values that do not lie within range(x).

See Also

pretty , logVals

Examples

Run this code
k <- c(135, 155, 120, 105, 140, 130, 190, 110)
range(k)
pretty(k)
pretty2(k)

Run the code above in your browser using DataLab