Re: [R] bar and line plot

2008-09-27 Thread Felipe Carrillo
PROTECTED]> > Subject: Re: [R] bar and line plot > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Date: Saturday, September 27, 2008, 4:48 AM > Felipe Carrillo wrote: > > Hello All: > > Using the below dataset how can I make a barplot > with > >

Re: [R] bar and line plot

2008-09-27 Thread Jim Lemon
Felipe Carrillo wrote: Hello All: Using the below dataset how can I make a barplot with Date(X) and NumEggs(Y) by Site. Then plot Temp(lineplot) It seems really simple, but I am having a hard time trying to do it by Site. Thanks Hi Felipe, This might do what you want: fdc<-r

Re: [R] bar and line plot

2008-09-26 Thread Gabor Grothendieck
Try this: library(lattice) DF$Date <- as.Date(DF$Date) xyplot(NumEggs ~ Date | Site, DF, type = "h") Also look at ggplot2 for another way. On Fri, Sep 26, 2008 at 2:38 PM, Felipe Carrillo <[EMAIL PROTECTED]> wrote: > Hello All: >Using the below dataset how can I make a barplot with >Dat

[R] bar and line plot

2008-09-26 Thread Felipe Carrillo
Hello All: Using the below dataset how can I make a barplot with Date(X) and NumEggs(Y) by Site. Then plot Temp(lineplot) It seems really simple, but I am having a hard time trying to do it by Site. Thanks Date NumEggs Site Temp 1 2008-04-22