kde2dplot {Starr} | R Documentation |
A 2d density is computed by kde2D.
kde2dplot(x,y,grid=50, ncol=30,nlevels=10,main="")
x |
x coordinate of data |
y |
y coordinate of data |
grid |
Number of grid points in each direction |
ncol |
number of colors |
nlevels |
number of contour levels desired if levels is not supplied |
main |
head of plot |
Benedikt Zacher zacher@lmb.uni-muenchen.de
## 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")