Learn R Programming

scales (version 0.1.0)

pretty_breaks: Pretty breaks. Uses default R break algorithm as implemented in pretty.

Description

Pretty breaks. Uses default R break algorithm as implemented in pretty.

Usage

pretty_breaks(n = 5, ...)

Arguments

n
desired number of breaks
...
other arguments passed on to pretty

Examples

Run this code
pretty_breaks()(1:10)
pretty_breaks()(1:100)
pretty_breaks()(as.Date(c("2008-01-01", "2009-01-01")))
pretty_breaks()(as.Date(c("2008-01-01", "2090-01-01")))

Run the code above in your browser using DataLab