[R] Time series plot shift

R. Michael Weylandt <michael.weylandt@gmail.com> michael.weylandt at gmail.com
Mon Aug 22 01:44:59 CEST 2011


Depending on the time series object you are using, the lag() function will do it. Read the documentation ?lag for details on your specific ts class. 

Michael Weylandt

On Aug 21, 2011, at 3:04 PM, Andrey A <avakoa at gmail.com> wrote:

> I have a plot and my x axis is Time in days, I need to shift it by +15 days,
> how do i do it?
> Thanks.
> 
>    [[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list