Re: [R] plot two time series with different length and different starting point in one figure.

2013-01-22 Thread arun
;t change. A.K. ----- Original Message - From: "Yuan, Rebecca" To: 'arun' Cc: R help Sent: Tuesday, January 22, 2013 5:28 PM Subject: RE: [R] plot two time series with different length and different starting point in one figure. Hello Arun, Thanks very much! In th

Re: [R] plot two time series with different length and different starting point in one figure.

2013-01-22 Thread Yuan, Rebecca
[mailto:smartpink...@yahoo.com] Sent: Tuesday, January 22, 2013 5:06 PM To: Yuan, Rebecca Cc: R help Subject: Re: [R] plot two time series with different length and different starting point in one figure. HI Rebecca, Try this: dateA<-seq.Date(as.Date("28JAN2012",format="%d%B%Y&qu

Re: [R] plot two time series with different length and different starting point in one figure.

2013-01-22 Thread arun
erge(Anew,Bnew) library(zoo) plot.zoo(res) A.K. ----- Original Message ----- From: "Yuan, Rebecca" To: 'arun' Cc: Sent: Tuesday, January 22, 2013 3:53 PM Subject: RE: [R] plot two time series with different length and different starting point in one figure. Hello Arun,

Re: [R] plot two time series with different length and different starting point in one figure.

2013-01-22 Thread arun
: R help Sent: Tuesday, January 22, 2013 2:38 PM Subject: RE: [R] plot two time series with different length and different starting point in one figure. Hello Arun, This would help me to get the date type of data. A new question comes out that since the dates are not exactly the same on two da

Re: [R] plot two time series with different length and different starting point in one figure.

2013-01-22 Thread arun
e(raw_time,format="%d%B%Y") Could you just dput() a few lines of your dataset if this is not working? Tx. A.K. - Original Message - From: "Yuan, Rebecca" To: 'arun' Cc: Sent: Tuesday, January 22, 2013 2:08 PM Subject: RE: [R] plot two time series with

Re: [R] plot two time series with different length and different starting point in one figure.

2013-01-22 Thread arun
rge(Anew,Bnew) res1<-res[complete.cases(res),] library(zoo) plot.zoo(res1) plot.zoo(res) A.K. - Original Message ----- From: "Yuan, Rebecca" To: 'PIKAL Petr' Cc: R help Sent: Tuesday, January 22, 2013 10:36 AM Subject: Re: [R] plot two time series with differe

Re: [R] plot two time series with different length and different starting point in one figure.

2013-01-22 Thread arun
and different starting point in one figure. Hi > -Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Yuan, Rebecca > Sent: Tuesday, January 22, 2013 4:07 PM > To: R help > Subject: [R] plot two time series with

Re: [R] plot two time series with different length and different starting point in one figure.

2013-01-22 Thread David Winsemius
ice then you will need to use 'xlim=' twice, although I thought it would be easier to use `plo`t first and `lines` second. -- David. > > Thanks, > > Rebecca > > -Original Message- > From: David Winsemius [mailto:dwinsem...@comcast.net] > Sent: Tuesd

Re: [R] plot two time series with different length and different starting point in one figure.

2013-01-22 Thread Yuan, Rebecca
o not know how to do it. Thanks, Rebecca -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Tuesday, January 22, 2013 2:34 PM To: Yuan, Rebecca Cc: R help Subject: Re: [R] plot two time series with different length and different starting point in one figur

Re: [R] plot two time series with different length and different starting point in one figure.

2013-01-22 Thread Yuan, Rebecca
To: Yuan, Rebecca Cc: R help Subject: Re: [R] plot two time series with different length and different starting point in one figure. Hi Rebecca, Assuming that 'raw_data' is data.frame with first column as "raw_time: You could convert the raw_time to date format by  as.Date("2

Re: [R] plot two time series with different length and different starting point in one figure.

2013-01-22 Thread David Winsemius
On Jan 22, 2013, at 7:07 AM, Yuan, Rebecca wrote: > Hello, > > I do have two different time series A and B, they are different in length and > starting point. A starts in Jan, 2012 and ends in Dec, 2012 and B starts in > March, 2012 and ends in Nov, 2012. > > How can I plot those two series A

Re: [R] plot two time series with different length and different starting point in one figure.

2013-01-22 Thread Yuan, Rebecca
gt; Sent: Tuesday, January 22, 2013 4:07 PM > To: R help > Subject: [R] plot two time series with different length and different > starting point in one figure. > > Hello, > > I do have two different time series A and B, they are different in > length and starting poi

Re: [R] plot two time series with different length and different starting point in one figure.

2013-01-22 Thread PIKAL Petr
Hi > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Yuan, Rebecca > Sent: Tuesday, January 22, 2013 4:07 PM > To: R help > Subject: [R] plot two time series with different length and different > startin

[R] plot two time series with different length and different starting point in one figure.

2013-01-22 Thread Yuan, Rebecca
Hello, I do have two different time series A and B, they are different in length and starting point. A starts in Jan, 2012 and ends in Dec, 2012 and B starts in March, 2012 and ends in Nov, 2012. How can I plot those two series A and B in the same plot? I.E., from Jan. 2012 - Feb, 2012, it wou