Skip to content

Instantly share code, notes, and snippets.

@cameronbracken
Created March 1, 2010 00:29
Show Gist options
  • Save cameronbracken/317960 to your computer and use it in GitHub Desktop.
Save cameronbracken/317960 to your computer and use it in GitHub Desktop.
set.seed(101)
x <- c(rnorm(5000),rnorm(5000,4,1.5))
y <- c(rnorm(5000),rnorm(5000,2,3))
hb2 <- hexbin(x,y)
cr <- colorRampPalette(c('gray','blue'))
plot(hb2,colramp=cr,border=gray(.75))
# Or no border, can't decide
# plot(hb2,colramp=cr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment