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
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
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
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