[R] Plot bar lines like excel

Hadley Wickham hadley at rice.edu
Wed Aug 25 14:51:55 CEST 2010


On Wed, Aug 25, 2010 at 6:05 AM, abotaha <yaseen0202 at gmail.com> wrote:
>
> Woow, it is amazing,
> thank you very much.
> yes i forget to attach the dates, however, the dates in my case is every 16
> days.
> so how i can use 16 day interval instead of month in by option.

Here's one way using the lubridate package:

library(lubridate)
today() + days(16) * seq_len(50)
ymd("2008-01-01") + days(16) * seq_len(50)

-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/



More information about the R-help mailing list