3-D Surface Plot
1
1
Entering edit mode
10.3 years ago

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 • 4.6k views
ADD COMMENT
1
Entering edit mode

Don't shout please.

ADD REPLY
0
Entering edit mode

See ?persp in R

ADD REPLY
2
Entering edit mode
10.3 years ago
Pavel Senin ★ 1.9k

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

ADD COMMENT

Login before adding your answer.

Traffic: 2016 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6