[R] Converting qqplot2 qplot() to grammar?

hadley wickham h.wickham at gmail.com
Thu May 22 00:47:12 CEST 2008


> Now that this part is working there are two more aspects of the plot I
> would like to remove: (in order of importance)
>
> * The row/column facetting labels.

You should be able to find that using grid.ls()

> * the whitespace that surrounds the plot. I'd like the ggsave output to
> resemble the "cropped.png" file rather than the "ggplot.png" file
> (attached).

That's not easy to do at the moment, because you need to modify
properties of the viewports, which you can't currently do with grid.
I'm working on a better customisation solution that should allow you
to do this.  (And to package everything up into a theme that can
easily be applied to other plots)

> * the gaps between the subplots (or the ability to change the colour of
> the subplot border?, looks to be grey50.)

As above.

> Hmm, I just get the generic R help for ggplot that says go to the
> website for complete documentation.

That's weird - you might need to upgrade your R to get the latest
version of ggplot2.

Hadley


-- 
http://had.co.nz/



More information about the R-help mailing list