Created
July 29, 2014 03:13
-
-
Save MonkmanMH/0f92cba504f2e7f11bba to your computer and use it in GitHub Desktop.
Wes Anderson palette in R
This file contains 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
if (!require(wesanderson)) install.packages("wesanderson") | |
library(wesanderson) | |
# for more on the Wes Anderson colour palette: | |
# https://github.com/karthik/wesanderson#wes-anderson-palettes | |
# http://blog.revolutionanalytics.com/2014/03/give-your-r-charts-that-wes-anderson-style.html | |
# | |
# | |
# | |
# add some Wes Anderson "Grand Budapest Hotel" colour to print object "p2" | |
p2 + scale_fill_manual(values = wes.palette(4, "GrandBudapest")) | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment