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

Brian G. Peterson brian at braverock.com
Wed Dec 9 18:51:55 CET 2009


Konrad Hoppe 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?
>   
Tips:

1> use a time series class, like xts or timeSeries, rather than a data.frame

2> ?plot

Regards,

    - Brian

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



More information about the R-SIG-Finance mailing list