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
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,
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
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.
___
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
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
-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
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
8 matches
Mail list logo