Re: [R] Plotting 3 Time Series

From: Juan Manuel Barreneche <jumanbar_at_gmail.com>
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,

JM

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



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. 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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive