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
The easiest way it to create one long dataset with four variables:
Month, avg, stdev and type. Type will be either K, C or S.
Then you just need to add some facetting to your code
ggplot(data = dat, aes(x = Month, y = avg, ymin = avg - stdev, ymax =
avg + stdev)) +
geom_point() +
geom_line()
Have you tried ?split.screen
Annemarie Eigenhuis, MSc
University of Amsterdam
Department of Psychology, clinical area
Roetersstraat 15
1018 WB Amsterdam
The Netherlands
phone: +31(0)205256815
email: a.eigenh...@uva.nl
-Original Message-
From: r-help-
7 matches
Mail list logo