[R] ggplot2 - deprecated guide= argument in

2008-09-17 Thread Pedro Barros
In the help for scale_fill_identity, it is written ## Not run: colour <- c("red","green","blue","yellow") qplot(1:4, 1:4, fill=colour, geom="tile") qplot(1:4, 1:4, fill=colour, geom="tile") + scale_fill_identity() # To get a legend, you also need to

Re: [R] ggplot2 - deprecated guide= argument in

2008-09-17 Thread Pedro Barros
Wed, Sep 17, 2008 at 5:34 AM, Pedro Barros <[EMAIL PROTECTED]> > wrote: >> >> In the help for scale_fill_identity, it is written >> ## Not run: >> colour <- c("red","green","blue","yellow") >>

[R] ggplot2 - accessing legend data

2008-09-19 Thread Pedro Barros
Hi All, I am trying to build a set of plots, and build a common legend to all of them. Because I want to use a multi-line, multi-column legend layout, I cannot use the common ggplot2 legends (if I can, please tell me how). So, I would like to know how can I access the properties of a legend, so t

[R] multiple plots - editing ggplot2 plot

2008-09-27 Thread Pedro Barros
Hi All, I am trying to build a composite plot, with multiple categories, using ggplot2. In principle, it could be done using facetting, but I do not seem to be able to get past the defaults, so I try building each plot separately, then putting them all together using frameGrob and placeGrob. For

[R] ggplot 2 - editing in the "panel_1_1" viewport

2008-09-29 Thread Pedro Barros
Hi All, I am trying to find out how to access the components of a ggplot plot, and I found this reply from Paul Murrel http://www.nabble.com/navigating-ggplot-viewports-tt14826352.html#a15056223. I tried it, and it works. However, I am trying to develop some functions that will do the drawing "au

[R] Inverse of placeGrob?

2008-09-30 Thread Pedro Barros
Hi, I am trying to extract grobs from a frame. I found out how to place grobs in a frame, but not how to extract them once they are there. Is there an "inverse" function to placeGrob? Thanks, Pedro -- View this message in context: http://www.nabble.com/Inverse-of-placeGrob--tp19739738p19739738

Re: [R] multiple plots - editing ggplot2 plot

2008-09-30 Thread Pedro Barros
"Cephalopods", "Cephalopods", "Cephalopods", "Cephalopods", "Cephalopods", "Cephalopods", "Cephalopods", "Cephalopods", "Cephalopods", "Cephalopods" , .Names = c("

Re: [R] ggplot 2 - editing in the "panel_1_1" viewport

2008-10-01 Thread Pedro Barros
n 4?". I assume there is a way, but I could not find out how... Thanks a lot for the great package, BTW! Pedro Paul Murrell wrote: > > Hi > > > Pedro Barros wrote: >> Hi All, >> >> I am trying to find out how to access the components of a ggplot plot,

[R] "grep" argument not working in "getGrob"?

2008-10-01 Thread Pedro Barros
Hi All, I have a gTree (x1) produced by ggplot, with the following structure (output from grid.ls, edited): viewport[GRID.VP.15] frame[plot-surrounds] viewport[GRID.VP.16] cellGrob[GRID.cellGrob.137] rect[background] upViewport[1] viewport[GRID.VP.17] cellGrob