Re: [R] combination of scatterplot and image graph

2004-12-23 Thread Romain François
Hello, you can fit a density using MASS::kde2d and then do a contour plot (?contour) and scatterplot your data : x - rnorm(500) y - rnorm(500) require(MASS) d - kde2d(x,y,n=50) image(d) contour(d,add=T) points(x,y,pch=20) Romain. bogdan romocea a écrit : Dear R users, I'm interested in a

Re: [R] combination of scatterplot and image graph

2004-12-23 Thread Jim Lemon
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

[R] combination of scatterplot and image graph

2004-12-22 Thread bogdan romocea
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

Re: [R] combination of scatterplot and image graph

2004-12-22 Thread Deepayan Sarkar
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