Re: [R] plotting a subset of a time series

2010-03-02 Thread Gabor Grothendieck
Try this: plot(window(x, end = c(2006, 10))) On Tue, Mar 2, 2010 at 2:19 AM, Erin Hodgess wrote: > Dear R People: > > I have the following time series and plot: >> x <- ts(rnorm(50),start=2005,freq=12) >> plot(x) >> > > which works fine. > > I would like to plot a subset of that time series, whi

Re: [R] plotting a subset of a time series

2010-03-02 Thread davidr
Sent: Tuesday, March 02, 2010 1:20 AM To: R help Subject: [R] plotting a subset of a time series Dear R People: I have the following time series and plot: > x <- ts(rnorm(50),start=2005,freq=12) > plot(x) > which works fine. I would like to plot a subset of that time series, which I

[R] plotting a subset of a time series

2010-03-01 Thread Erin Hodgess
Dear R People: I have the following time series and plot: > x <- ts(rnorm(50),start=2005,freq=12) > plot(x) > which works fine. I would like to plot a subset of that time series, which I did with: > plot(window(x,2005,2006.83)) Is there a better way to do this, please? Thanks, Erin -- Erin