Skip to content

Instantly share code, notes, and snippets.

@justmytwospence
Last active December 14, 2015 09:58
Show Gist options
  • Save justmytwospence/5069057 to your computer and use it in GitHub Desktop.
Save justmytwospence/5069057 to your computer and use it in GitHub Desktop.
R: An XKCD theme for ggplot2
### XKCD theme for ggplot2
theme_xkcd <- theme(
panel.background = element_rect(fill="white"),
axis.ticks = element_line(colour=NA),
panel.grid = element_line(colour="white"),
axis.text.y = element_text(colour=NA),
axis.text.x = element_text(colour="black"),
text = element_text(size=16, family="Humor Sans")
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment