powered by
kde2dplot(x,y,grid=50, ncol=30,nlevels=10,main="")
kde2d
## points = 10^4 x <- rnorm(points/2) x = c(x,x+2.5) y <- x + rnorm(points,sd=0.8) x = sign(x)*abs(x)^1.3 kde2dplot(x,y,main="Density Estimation")
Run the code above in your browser using DataLab