Skip to content

Instantly share code, notes, and snippets.

@trcook
Created April 3, 2013 13:58
Show Gist options
  • Select an option

  • Save trcook/5301417 to your computer and use it in GitHub Desktop.

Select an option

Save trcook/5301417 to your computer and use it in GitHub Desktop.
R colors for graphics
# Display pretty color pallete:
RColorBrewer::display.brewer.pal(5,"Set1")
# Get the hex values for the color palette
RColorBrewer::brewer.pal(5,"Set1")
# set these to names that you can use later. Ex:
red<-"#E41A1C"
blue<-"#377EB8"
green<- "#4DAF4A"
purple<-"#984EA3"
orange<-"#FF7F00"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment