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
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
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
3 matches
Mail list logo