[R-SIG-Finance] how to plot a data frame of timeseries?

Brian G. Peterson brian at braverock.com
Wed Dec 9 19:12:33 CET 2009


http://cran.r-project.org/web/packages/RColorBrewer/index.html

?par

Konrad Hoppe wrote:
> Hi Jeff,
>
> thank you so far, that works quite good. But I've still the problem with the
> random but different colors. Could you please give me one more hint?
>
> regards
> --
> Konrad Hoppe
> http://www.konrad-hoppe.com/
>
> -----Ursprüngliche Nachricht-----
> Von: Jeff Ryan [mailto:jeff.a.ryan at gmail.com] 
> Gesendet: Mittwoch, 9. Dezember 2009 18:48
> An: Konrad Hoppe
> Cc: R-Finance
> Betreff: Re: [R-SIG-Finance] how to plot a data frame of timeseries?
>
> Hi Konrad
>
> For time series you should really look to using one of the myriad of
> time series classes that are in R.
>
> zoo, xts and timeSeries will all do nicely for what you want.  Though
> zoo and timeSeries have better plotting than xts (xts extends zoo, so
> relies mostly on zoo for plotting)
>
> Other options to explore at fts (which has a nice C++ backend) as well
> as some of the older base ones, like 'ts' and 'its'.
>
> library(zoo)
> ?plot.zoo
>
> ?as.zoo will also help
>
> HTH
> Jeff
>
> On Wed, Dec 9, 2009 at 11:39 AM, Konrad Hoppe <konradhoppe at hotmail.de>
> wrote:
>   
>> Dear mailing list members,
>>
>> I would like to plot different time series in one plot, which are together
>> in one data frame. In the columns are the different stocks and in the rows
>> are the different time points. Every stock should have a different color,
>> can be chosen randomly. I've already seen sth like this in the context of
>> stochastic processes but I don't know how to create.
>>
>> Can anybody help me?
>>
>> All the best,
>>
>> --
>>
>> Konrad Hoppe
>>
>> http://www.konrad-hoppe.com/
>>
>>
>>
>>
>>        [[alternative HTML version deleted]]
>>
>> _______________________________________________
>> R-SIG-Finance at stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
>> -- Subscriber-posting only.
>> -- If you want to post, subscribe first.
>>
>>     
>
>
>
>   


-- 
Brian G. Peterson
http://braverock.com/brian/
Ph: 773-459-4973
IM: bgpbraverock



More information about the R-SIG-Finance mailing list