I have a matrix z that spits out a 20 by 20 matrix with with values starting at -9 to -739. I downloaded rgl but I can't figure out how to use it with my matrix:
z[i, j]
set.seed(101)
z <- matrix(sample(-739:-9,replace=TRUE,400),20)
library(rgl)
persp3d(z,col="gray")
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more