search for: ggplotgrob

Displaying 5 results from an estimated 5 matches for "ggplotgrob".

2011 Nov 15
1
grid.arrange, grid.layout - legend, global y axis title
...to different symbols (same as for the single plots (ggplot2)). I also don't know how to do that. I know that there is the function grid.arrange which can do both things but this isn't working because I am in the dev mode of ggplot. Then I get the error: Error: could not find function "ggplotGrob. I load my libraries the following way: 1) import data 2) load library(gridExtra) 3) load library(devtools) dev_mode(TRUE) library(ggplot2) library(reshape2) 4) produce plots 5) arrange the plots. So what is the best way to proceed? Should I stay with the grid.layout approach and can I...
2009 May 31
2
grid.edit() for ggplot2
.../~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 the grob grid.ls(g) # rather large! # find a particular grob in the gTree getGrob(g,"texts", grep = T) # next step, modify, say, the colour of these grobs grid.edit() # what do I put in here? Thanks for any piece of advice, baptiste
2010 Mar 19
2
lattice grob
Dear list, I'm trying to arrange various grid objects on a page using a frameGrob. It works fine with basic grobs (textGrob, gTree, etc.), and also with ggplot2 objects using the ggplotGrob() function. I am however stuck with lattice. As far as I understand, lattice produces a list of class trellis, which is eventually displayed using the plot.trellis method. I am not sure if/how one can convert this list into a high-level grob. I tried the following, latticeGrob <- function(p, .....
2008 Aug 14
1
ggplot2: remove minor-horizontal guide before drawing
Hi, I want to remove minor-horizontal and minor-vertical lines from a plot generated with ggplot2. I can do this after the plot has been drawn using grid.gremove. However, I would like to do it before drawing my plot. The ggplot2 book refers to a ggplotGrob function which creates a grob from a plot but this function doesn't seem to exist in ggplot2 0.6. Is there another way to do it? Regards, Paul
2008 Aug 29
1
ggplot2: Changes to grobs not saved to file output
Hello, Maybe I missed something - most likely .:-( I create a gplot and then makes some changes to the plot using grid graphics functions. These changes show up on the display OK, but when I save using ggsave() the grid changes do not show up. How do I save the plot with these changes? Thanks in advance. -- View this message in context: