Created
December 7, 2016 18:57
-
-
Save baptiste/1fc18eef0e9034c6de4e8630040041e8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ggplot2) | |
p <- ggplot(data = diamonds, mapping = aes(x = clarity)) + geom_bar(aes(fill = cut)) + | |
theme_void() + | |
theme(legend.position="none", | |
panel.background = element_rect(fill="grey80"), | |
plot.background = element_rect(fill="red")) | |
g <- ggplotGrob(p) | |
grid::grid.newpage() | |
grid::grid.draw(g$grobs[[6]]) |
Author
baptiste
commented
Dec 7, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment