Re: [R] Data formatting for matplot

2009-09-28 Thread Tim Clark
; Tim Clark > > Department of Zoology > > University of Hawaii > > > > > > --- On Sun, 9/27/09, Henrique Dallazuanna > wrote: > > > >> From: Henrique Dallazuanna > >> Subject: Re: [R] Data formatting for matplot > >> To: "Tim Cla

Re: [R] Data formatting for matplot

2009-09-28 Thread Peter Ehlers
Hawaii --- On Sun, 9/27/09, Henrique Dallazuanna wrote: From: Henrique Dallazuanna Subject: Re: [R] Data formatting for matplot To: "Tim Clark" Cc: r-help@r-project.org Date: Sunday, September 27, 2009, 4:47 PM You can try this: matplot(do.call(cbind, split.dat)) On Sun, Sep 27, 2009 a

Re: [R] Data formatting for matplot

2009-09-28 Thread Henrique Dallazuanna
e. > > Thanks, > > Tim > > > Tim Clark > Department of Zoology > University of Hawaii > > > --- On Sun, 9/27/09, Henrique Dallazuanna wrote: > >> From: Henrique Dallazuanna >> Subject: Re: [R] Data formatting for matplot >> To: "Tim

Re: [R] Data formatting for matplot

2009-09-27 Thread Tim Clark
? I don't have to use matplot(), but would like to understand its use. Thanks, Tim Tim Clark Department of Zoology University of Hawaii --- On Sun, 9/27/09, Henrique Dallazuanna wrote: > From: Henrique Dallazuanna > Subject: Re: [R] Data formatting for matplot > To: "

Re: [R] Data formatting for matplot

2009-09-27 Thread Gabor Grothendieck
Try this: library(lattice) xyplot(y ~ x, mydat, groups = id) On Sun, Sep 27, 2009 at 10:42 PM, Tim Clark wrote: > Dear List, > > I am wanting to produce a multiple line plot, and know I can do it with > matplot but can't get my data in the format I need.  I have a dataframe with > three colum

Re: [R] Data formatting for matplot

2009-09-27 Thread Henrique Dallazuanna
You can try this: matplot(do.call(cbind, split.dat)) On Sun, Sep 27, 2009 at 11:42 PM, Tim Clark wrote: > Dear List, > > I am wanting to produce a multiple line plot, and know I can do it with > matplot but can't get my data in the format I need.  I have a dataframe with > three columns; indiv

[R] Data formatting for matplot

2009-09-27 Thread Tim Clark
Dear List, I am wanting to produce a multiple line plot, and know I can do it with matplot but can't get my data in the format I need. I have a dataframe with three columns; individuals ID, x, and y. I have tried split() but it gives me a list of matrices, which is closer but not quite what I