This is a test version of Biostars. For the public version, visit https://www.biostars.org.
3-D Surface Plot

I HAVE X,Y AND Z VALUES AND I WANT TO GENERATE A 3D SURFACE PLOT USING THEM.Is their any way to this using Matlab or R ? I am not able to figure it out.

Thanks a lot in advance.

r matlab

See ?persp in R

1 answer

I use lattice in R to plot error rates and such.

# hyperbolic paraboloid (a "saddle surface") example
require(lattice)
g <- expand.grid(x = -10:10, y = -10:10, gr = 1:2)
g$z <- g$x^2 - g$y^2
wireframe(z ~ x * y, data = g, groups = gr,
          scales = list(arrows = FALSE),
          drape = TRUE, colorkey = TRUE,
          screen = list(z = 30, x = -60))

enter image description here

and one of those error rates:

enter image description here

Log in to answer this question.