library(plot3D)
data(iris)
x <- sep.l <- iris$Sepal.Length
y <- pet.l <- iris$Petal.Length
z <- sep.w <- iris$Sepal.Width
CI <- list(z = matrix(nrow = length(x),
data = rep(0.1, 2*length(x))))
par(mfrow = c(1, 1))
scatter3D(x, y, z, phi = 0, bty = "g", col = gg.col(100),
pch = 18, CI = CI)
Running the above code gives me a scatter plot, but I can't seem to interact with it.
I know that the plot3d
function from rgl
package does have interactive 3D plots, but I didn't see an option to add confidence intervals.
library(rgl)
open3d()
plot3d(x, y, z, col = rainbow(1000))
Is there a way to create an interactive 3D plot with CIs?