[R] ggplot output
Eigenhuis, Annemarie
A.Eigenhuis at uva.nl
Thu Nov 4 14:53:17 CET 2010
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.eigenhuis at uva.nl
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
On Behalf Of ashz
Sent: donderdag 4 november 2010 14:37
To: r-help at 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(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$Date,K_avg = hstat$K.avg,K_stdev =
hstat$K.stdev)
ggplot(data = dat, aes(x = Month, y = K_avg, ymin = K_avg - K_stdev,
ymax = K_avg + K_stdev)) +
geom_point() +
geom_line() +
geom_errorbar()
dat <- data.frame(Month = hstat$Date,S_avg = hstat$S.avg,S_stdev =
hstat$S.stdev)
ggplot(data = dat, aes(x = Month, y = S_avg, ymin = S_avg - S_stdev,
ymax = S_avg + S_stdev)) +
geom_point() +
geom_line() +
geom_errorbar()
Running the script generates 3 separate graphs, how can I output them
next to each other?
Thanks
--
View this message in context:
http://r.789695.n4.nabble.com/ggplot-output-tp3027026p3027026.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list