[R] plotting a subset of a time series
Erin Hodgess
erinm.hodgess at gmail.com
Tue Mar 2 08:19:37 CET 2010
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 Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com
More information about the R-help
mailing list