Skip to content

Instantly share code, notes, and snippets.

@jeffreyiacono
Created February 9, 2013 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffreyiacono/4747285 to your computer and use it in GitHub Desktop.
Save jeffreyiacono/4747285 to your computer and use it in GitHub Desktop.
image + volcanos + colorBrewer
library(RColorBrewer)
cols <- brewer.pal(3, "BuGn")
pal <- colorRampPalette(cols)
image(volcano, col = pal(5), main = "Low def")
image(volcano, col = pal(100), main = "High def")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment