You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ggplot2
Hi,
I am struggling with the idea of grabbing a single grob from the
complex gTree produced by ggplot.
I would like to grab just the panel gTree. I have not been able to
figure out how to specify gPath in
getGrob(grob,gPath(??)) command.
Thanks,
~Russ
hadley wickham
unread,
Feb 23, 2009, 9:54:07 AM2/23/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to russ, ggplot2
Hi Russ,
Start by rendering the plot on screen and then using grid.ls(). The
grobs should have sufficiently unique names that you can use getGrob
with global = TRUE to find the one that you're looking for.