Created
November 6, 2012 01:12
-
-
Save jtoll/4021792 to your computer and use it in GitHub Desktop.
Color palette hex values
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
# Extract the hexadecimal color values for a particular palette from | |
# the RColorBrewer package, as used by ggplot's scales package. | |
library("RColorBrewer") | |
brewer.pal(12, "Paired") | |
# [1] "#A6CEE3" "#1F78B4" "#B2DF8A" "#33A02C" "#FB9A99" "#E31A1C" | |
# [7] "#FDBF6F" "#FF7F00" "#CAB2D6" "#6A3D9A" "#FFFF99" "#B15928" | |
# to display that palette: | |
display.brewer.pal(12, "Paired") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment