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
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")
>>
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
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
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
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
"Cephalopods", "Cephalopods",
"Cephalopods", "Cephalopods", "Cephalopods", "Cephalopods",
"Cephalopods", "Cephalopods", "Cephalopods", "Cephalopods"
, .Names = c("
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,
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
9 matches
Mail list logo