Skip to content

Instantly share code, notes, and snippets.

@dsparks
Created September 13, 2012 01:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dsparks/3711166 to your computer and use it in GitHub Desktop.
Save dsparks/3711166 to your computer and use it in GitHub Desktop.
Empty theme for ggplot2 0.9.2
# https://github.com/wch/ggplot2/wiki/New-theme-system
new_theme_empty <- theme_bw()
new_theme_empty$line <- element_blank()
new_theme_empty$rect <- element_blank()
new_theme_empty$strip.text <- element_blank()
new_theme_empty$axis.text <- element_blank()
new_theme_empty$plot.title <- element_blank()
new_theme_empty$axis.title <- element_blank()
new_theme_empty$plot.margin <- structure(c(0, 0, -1, -1), unit = "lines", valid.unit = 3L, class = "unit")
@geotheory
Copy link

Nice work thanks

@Matherion
Copy link

Thanks, very useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment