Picture Convex hull in 3D Scatter Plot
I followed the tutorial about 3D visualization using the package "rgl" here So I was able to draw a 3D Scatter Plot with "iris" data and create an ellipsoid surrounding 95 % of the data points: library("rgl") data(iris) x <- sep.l <- iris$Sepal.Length y <- pet.l <- iris$Petal.Length z <- sep.w <- iris$Sepal.Width plot3d(x, y, z, col="blue", box = FALSE, type ="s", radius = 0.15) ellips <- ellipse3d(cov(cbind(x,y,z)), centre=c(mean(x), mean(y), mean(z)), level = 0.95) plot3d(ellips, col = "blue", alpha = 0.2, add = TRUE, box = FALSE) I know that the first 50 data points belong to a different