search for: copygrobs

Displaying 1 result from an estimated 1 matches for "copygrobs".

Did you mean: copygrob
2009 May 31
2
grid.edit() for ggplot2
Dear all, I'm trying to access and modify grobs in a ggplot2 plot. The basic idea for raw Grid objects I understand from Paul Murrell's R graphics book, or this page of examples, http://www.stat.auckland.ac.nz/~paul/grid/copygrob/copygrobs.R However I can't figure out how to apply this to a ggplot (basically I don't know how to write a syntactically correct gPath), p <- # minimal example qplot(0,0)+ annotate("text",0,0,label="test") g <- # store the plot as a grob ggplotGrob(p) # structure of...