Skip to content

Instantly share code, notes, and snippets.

@pedroj
Created March 25, 2013 16:31
Show Gist options
  • Select an option

  • Save pedroj/5238457 to your computer and use it in GitHub Desktop.

Select an option

Save pedroj/5238457 to your computer and use it in GitHub Desktop.
Color-blind palettes
# The palette with grey:
cbPalette <- c("#999999", "#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00", "#CC79A7")
# The palette with black:
cbbPalette <- c("#000000", "#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00", "#CC79A7")
# To use for fills, add
scale_fill_manual(values=cbPalette)
# To use for line and point colors, add
scale_colour_manual(values=cbPalette)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment