Re: [R] ggplot output

2010-11-04 Thread Dennis Murphy
Hi: This isn't very difficult if you use a little imagination. We want three separate plots of monthly means by variable with attached error bars. This requires faceting, so we need to create a factor whose levels are the variable names. We also need to generate enough data to summarize by mean an

Re: [R] ggplot output

2010-11-04 Thread Abhijit Dasgupta
The other way (in the same spirit as par(mfrow = ...) in base graphics) is to use the grid.arrange function in the gridExtra package. See it's documentation for examples. On Nov 4, 2010, at 9:36 AM, ashz wrote: > > Dear All, > > I have this script: > > dat <- data.frame(Month = hstat$Date,

Re: [R] ggplot output

2010-11-04 Thread ONKELINX, Thierry
donderdag 4 november 2010 15:32 > Aan: r-help@r-project.org > Onderwerp: Re: [R] ggplot output > > > Dear Thierry, > > Your solution looks very elgant but I can not find a proper example. > > Can you provide me one? > > Thx > > -- > View this mess

Re: [R] ggplot output

2010-11-04 Thread ashz
Dear Thierry, Your solution looks very elgant but I can not find a proper example. Can you provide me one? Thx -- View this message in context: http://r.789695.n4.nabble.com/ggplot-output-tp3027026p3027108.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] ggplot output

2010-11-04 Thread ONKELINX, Thierry
onkelijk bericht- > Van: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] Namens Eigenhuis, Annemarie > Verzonden: donderdag 4 november 2010 14:53 > Aan: ashz; r-help@r-project.org > Onderwerp: Re: [R] ggplot output &g

Re: [R] ggplot output

2010-11-04 Thread ONKELINX, Thierry
hn Tukey > -Oorspronkelijk bericht- > Van: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] Namens ashz > Verzonden: donderdag 4 november 2010 14:37 > Aan: r-help@r-project.org > Onderwerp: [R] ggplot output > > > Dear All, > > I have this scr

Re: [R] ggplot output

2010-11-04 Thread Eigenhuis, Annemarie
-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of ashz Sent: donderdag 4 november 2010 14:37 To: r-help@r-project.org Subject: [R] ggplot output Dear All, I have this script: dat <- data.frame(Month = hstat$Date,C_avg = hstat$C.avg,C_stdev = hstat$C.stdev) ggplot(d

[R] ggplot output

2010-11-04 Thread ashz
Dear All, I have this script: dat <- data.frame(Month = hstat$Date,C_avg = hstat$C.avg,C_stdev = hstat$C.stdev) ggplot(data = dat, aes(x = Month, y = C_avg, ymin = C_avg - C_stdev, ymax = C_avg + C_stdev)) + geom_point() + geom_line() + geom_errorbar() dat <- data.frame(Month = hstat$D