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. Michael Weylandt <michael.weylandt@gmail.com>
2011-Aug-21 23:44 UTC
[R] Time series plot shift
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.