[R] PLot a matrix

Sarah Goslee sarah.goslee at gmail.com
Sun May 6 19:11:30 CEST 2012


You can use lines() to add additional lines to your plot.

Sarah

On Sun, May 6, 2012 at 11:39 AM, Trying To learn again
<tryingtolearnagain at gmail.com> wrote:
> Hi,
>
> I want to plot this matrix (I attach the data), it is suposed that each
> column is a different time series.
>
> If I do
>
> g<-read.table("dataADF.txt", header=F)
>
> and
>
> plot(g[,1],type="l")
>
> it  plots the first column plot if I want in a unique graph each colums of
> dataA, all in one. How should I proceed?There is a direct pre-defined code?
>
> And  If I wanted a plot by each column?
>



-- 
Sarah Goslee
http://www.functionaldiversity.org



More information about the R-help mailing list