I would like to plot my 3D function in a rgl device window using plot3D package. It allows me to rotate on x, y, z axis and scale. This is basic example with rgl package:
x <- seq(-10, 10, length = 30)
y <- x
z <- outer(x, y, function(x, y) { r <- sqrt(x^2 + y^2); 10 * sin(r)/r })
z[is.na(z)] <- 1
rgl::persp3d(x, y, z)
Unfortunately this one is not open in rgl device:
plot3D::persp3D(x, y, z)
I am pretty sure that I have see it somewhere (maybe even in my experiments with that package). Can someone help me please?
