I want to use bioconductor's hexbin (which I can do) to generate a plot that fills the entire (png) display region – no axes, no labels, no background, no nuthin'.
R – ggplot2 plot without axes, legends, etc
ggplot2r
Related Topic
- R – Grouping functions (tapply, by, aggregate) and the *apply family
- R – How to set limits for axes in ggplot2 R plots
- R – Changing font size and direction of axes text in ggplot2
- R – Turning off some legends in a ggplot
- R – Change size of axes title and labels in ggplot2
- R – Center Plot title in ggplot2
Best Answer
As per my comment in Chase's answer, you can remove a lot of this stuff using
element_blank
:It looks like there's still a small margin around the edge of the resulting .png when I save this. Perhaps someone else knows how to remove even that component.
(Historical note: Since ggplot2 version 0.9.2,
opts
has been deprecated. Instead usetheme()
and replacetheme_blank()
withelement_blank()
.)