[R] Moving from Splus to R: irregular and regular time series
ggrothendieck at gmail.com
Thu Apr 17 18:43:00 CEST 2008
Have a look at the zoo package and read its three vignettes.
z <- zoo(1:10, Sys.Date() + 1:10)
zz <- zoo(c(11, 13, 15), Sys.Date() + c(1, 3, 5))
plot(cbind(z, zz), screen = 1, type = "p", col = 1:2)
# or omit screen = 1 for a multi-panel plot
vignette(package = "zoo")
On Thu, Apr 17, 2008 at 12:05 PM, Isabelle BRAUD
<isabelle.braud at cemagref.fr> wrote:
> Dear R developpers,
> I am a user of Splus since many years and I have developped lots of
> functions to plot graph of data and model results of irregular or
> regular times series.
> In Splus regular times series are created using the rts function and
> irregular time series using the its functions. In both cases, times is
> given as a numeric vector.
> There is no problem in plotting a regular and an irregular time series
> on the same graphs using the ts.plot function.
> I am now trying to move to R, as it is a free software, so that it is
> very easy to install it for students.
> However, I have problems in finding the functions in R which would
> enable me to do the same type of graphs as before.
> I have downloaded the its and tseries packages, but in tseries time is
> numeric and in its time is provided as POSIXct or lt objects. I have the
> filling that both packages have been developped separately and I don't
> see how I could specify time to be able to plot regular and irregurlar
> time series on the same graph --- if it is possible in R--.
> Thanks in advance for your answer
> Best regards
> Isabelle BRAUD
> Unité de recherche Hydrologie-Hydraulique
> 3bis quai Chauveau
> CP 220
> 69336 Lyon Cédex 9
> Tel: 04 72 20 87 78
> Fax: 04 78 47 78 75
> E-mail: isabelle.braud at cemagref.fr
> R-help at r-project.org mailing list
> 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