Re: [R] ggplot2: Changes to grobs not saved to file output

2008-09-05 Thread hadley wickham
Unfortunately it's not particularly easy in the current version. In the next version, you can do: p <- qplot(wt, mpg, data=mtcars, colour=cyl) # Get the plot grob grob <- ggplotGrob(p) # Modify it place grob <- geditGrob(grob, gPath("strip","label"), gp=gpar(fontface="bold")) # Draw it pdf(...)

[R] ggplot2: Changes to grobs not saved to file output

2008-08-29 Thread btcruiser
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? Thank