powered by
densityscatter(x,y,pch=19,cex=1,ncol=30,grid=100,palette="heat", add=F,...)
kde2dplot
## 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 densityscatter(x,y)
Run the code above in your browser using DataLab