[R] Plotting 3 Time Series

Juan Manuel Barreneche jumanbar at gmail.com
Thu May 22 18:24:52 CEST 2008


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



More information about the R-help mailing list