Hi:
Generally speaking, the I() construct is specific to qplot(), but it
doesn't seem to cause any problems here when used with ggplot(). It's
not clear to me which of the two legends you want to remove (I would
guess the colorbar), but try these:
# library(scales)
# Gets rid of the grey scale legend:
d + geom_bin2d(aes(alpha = ..count..), fill = "black") +
scale_alpha(guide = "none")
# Gets rid of the fill colorbar:
d + geom_bin2d(aes(alpha = ..count..), fill = "black") +
scale_fill_continuous(guide = "none")
Dennis