Examples for 'lubridate::pretty_dates'


Computes attractive axis breaks for date-time data

Aliases: pretty_dates

Keywords: chron dplot utilities

### ** Examples

x <- seq.Date(as.Date("2009-08-02"), by = "year", length.out = 2)
pretty_dates(x, 12)
 [1] "2009-08-01 UTC" "2009-09-01 UTC" "2009-10-01 UTC" "2009-11-01 UTC"
 [5] "2009-12-01 UTC" "2010-01-01 UTC" "2010-02-01 UTC" "2010-03-01 UTC"
 [9] "2010-04-01 UTC" "2010-05-01 UTC" "2010-06-01 UTC" "2010-07-01 UTC"
[13] "2010-08-01 UTC" "2010-09-01 UTC"

[Package lubridate version 1.8.0 Index]