Hi!
I have a problem with Kernel density estimate plot for 3-dimensional data in ks-package.
Here the example:
# load ks, spatstat
# three-dimensional kernel density of B
B <- pp3(runif(300), runif(300), runif(300), box3(c(0,1)))
x <- unclass(B$data)$df
H <- Hpi(x)
fhat <- kde(x, H=H)
plot(fhat)
plot(fhat, axes=FALSE, box=FALSE, drawpoints=TRUE); axes3d(c('x','y','z'))
If I try to insert my own coordinates instead of the artificial 3D-pattern, it does not work.
It would be great, if anybody could help me!
Thanks
Pascal
[[alternative HTML version deleted]]