[R] ggplot legend consolidation

2007-09-07 Thread Te, Kaom
Hello Everyone, I have recently been introduced to the ggplot package by Hadley Wickham and must say I am quite impressed so far at how easy it is to make attractive plots, but one thing I am struggling over is how to consolidate legends. I have 3 plots that I would like to put on a single page

Re: [R] ggplot legend consolidation

2007-09-10 Thread hadley wickham
> I have recently been introduced to the ggplot package by Hadley Wickham > and must say I am quite impressed so far at how easy it is to make > attractive plots, but one thing I am struggling over is how to > consolidate legends. It's not currently possible to consolidate them (although in the di

Re: [R] ggplot legend consolidation

2007-09-10 Thread Te, Kaom
END CODE -Original Message- From: hadley wickham [mailto:[EMAIL PROTECTED] Sent: Monday, September 10, 2007 7:58 AM To: Te, Kaom Cc: r-help@stat.math.ethz.ch Subject: Re: [R] ggplot legend consolidation > I have recently been introduced to the ggplot pack

Re: [R] ggplot legend consolidation

2007-09-10 Thread hadley wickham
p, vp = current.viewport()) > upViewport() > > p <- ggplot(data = mtcars) + > geom_point(mapping = aes(x = qsec, y = mpg, colour = cyl)) + > hide_colour > > pushViewport(viewport(layout.pos.col = 1, > layout.pos.row = 2)) > > print(p, vp = current.viewport()) > upViewpo