pretty_dates: Computes attractive axis breaks for date-time data
Description
pretty_dates() identifies which unit of time the sub-intervals should be
measured in to provide approximately n breaks, then chooses a "pretty"
length for the sub-intervals and sets start and end points that 1) span the
entire range of the data, and 2) allow the breaks to occur on important
date-times (i.e. on the hour, on the first of the month, etc.)
Usage
pretty_dates(x, n, ...)
Value
a vector of date-times that can be used as axis tick marks or bin breaks
Arguments
x
a vector of POSIXct, POSIXlt, Date, or chron date-time objects