[R] ggplot output

ashz
Thu, 04 Nov 2010 13:36:56 -0000

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