search for: mvol2

Displaying 1 result from an estimated 1 matches for "mvol2".

Did you mean: mvol1
2017 Oct 19
1
overlaying points and lines on a surface3d rgl plot with axes
...rts, I am interested in learning more about the use of 3D plots. Specifically, I want to add points and lines to a surface plot. And get the axes and labels plotted also. Here is what I have tried with an example data set : library(rgl) vol2 <- 2*volcano # Exaggerate the relief library(reshape) mvol2 <- melt(vol2) str(mvol2) # First, persp and persp3d plots do not succeed #persp(mvol2$X1,mvol2$X2,vol2,xlab="X2",ylab="X1",zlab="value",axes=TRUE,ticktype="detailed",cex.lab=1) persp3d(mvol2$X2,mvol2$X1,vol2,axes=TRUE) # Error - Increasing 'x' and...