Re: [R] Plotting 3 Time Series

From: Juan Manuel Barreneche <>
Date: Thu, 22 May 2008 13:24:52 -0300

Hi ngupta:
i didn't get what you mean with "If B than xts..If T yts..."
i suppose that you want to plot the prices of type A, then the prices of type B and so on...

# well, to extract prices of tipe A, you can use A <- which(table[,1] == "A")
# and then
A.prices <- table[,2][A]

hope that helps,


El Jueves, 22 de Mayo de 2008 11:29, ngupta escribió:
> Hi, I am fairly new to R so this may be easy for some.
> I have one column that is the Type="A, B' T"
> and I have another column that lists Price='894, 895, 896'
> I wanted to plot three different series based upon the Type...If B than
> xts..If T yts...
> How exactly do I do this?
> Thanks in advance mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 22 May 2008 - 17:25:25 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 22 May 2008 - 17:30:40 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive