[R] different time series in one plot

Giovanni Petris GPetris at uark.edu
Fri Oct 9 23:01:55 CEST 2009


> Date: Fri, 09 Oct 2009 18:18:05 +0200
> From: Tomas Lanczos <lanczos at fns.uniba.sk>
> Sender: r-help-bounces at r-project.org
> Precedence: list
> 
> Hello,
> 
> I need to put 2 or more different time series to one plot for comparison
> each other. The problem is that the time series are irregular, moreover
> the time lenghts and periods are not the same. Is there a way to manage
> it in R?

The function plot(), maybe...?

You need to have both series in a single mts object. Look also at the
argument plot.type...

HTH,
Giovanni

> 
> Many thanks for any hint and advice in advance
> 
> Tomas
> 
> ______________________________________________
> 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.
> 
> 

-- 

Giovanni Petris  <GPetris at uark.edu>
Associate Professor
Department of Mathematical Sciences
University of Arkansas - Fayetteville, AR 72701
Ph: (479) 575-6324, 575-8630 (fax)
http://definetti.uark.edu/~gpetris/




More information about the R-help mailing list