R color palettes

  1. Basic grDevice

rainbow()
topo.colors()
terrain.colors()
heat.colors()

my.palette <- terrain.colors(100)
  1. RColoBrewer package
display.brewer.all()

my.palette <- brewer.pal(n, name) For example, my.palette <- brewer.pal(9, "Blues") However, the number of colors is limited up to 9, in most colors. Then use this.

more.color.palette <- colorRampPalette(brewer.pal(9,"Blues"))(100)

http://stackoverflow.com/questions/3832850/color-schemes-in-r
http://www.compbiome.com/2010/12/r-using-rcolorbrewer-to-colour-your.html

R color palettes # Basic grDevice rainbow topo…
Tagged on:     

Leave a Reply

Your email address will not be published. Required fields are marked *