[R] combination of scatterplot and image graph

Deepayan Sarkar deepayan at stat.wisc.edu
Thu Dec 23 06:02:22 CET 2004

On Wednesday 22 December 2004 22:37, bogdan romocea wrote:
> Dear R users,
> I'm interested in a combination of a scatterplot and an image graph.
> I have two large vectors. Because in the scatterplot some areas are
> sparsely and others densely populated, I want to see the points, and
> I also want their color to be changed based on their density (similar
> to a heat map). Is there a function that can do that?

Perhaps not exactly that, but you might be inerested in the hexbin 
package. For example, 

plot(hexbin(x = rnorm(5000), y = rnorm(5000)))


More information about the R-help mailing list