I have the following data in a data frame:
**x** in (0,1) **y** in [0,1] **z** in [0,1]
For instance:
X,Y,Z 0.1, 0.2, 0.56 0.1, 0.3, 0.57 ...
I would like to build them on this type of chart: 
I tried on R, but all I could get was a not-so-fantastic 3D scattered image . I also read about the 3d wireframe lattice , but I could not lower it around.
What should I do to get Matlab as a wireframe in R? What data conversions are involved?
This is sample code from the documentation:
x <- seq(-pi, pi, len = 20) y <- seq(-pi, pi, len = 20) g <- expand.grid(x = x, y = y) g$z <- sin(sqrt(g$x^2 + g$y^2)) wireframe(z ~ x * y, g, drape = TRUE, aspect = c(3,1), colorkey = TRUE)
I do not think this is particularly clear.
EDIT : The persp3d function works fine, and I managed to create a 3D plot with a single color. How to set the color scale relative to the value of z?
Thanks for any tips, Mulone