Reputation: 584
I have three vectors x, y, U that I would like to plot as a surface. I can do this in Matlab using functions delaunay() and trisurf(). However, I would like to do the same in R but can't find something similar.
Any help appreciated.
Upvotes: 1
Views: 392
Reputation: 1005
You can do trisurf with Plotly's open-source R client. R code here:
http://moderndata.plot.ly/trisurf-plots-in-r-using-plotly/
Upvotes: 1
Reputation: 29477
See the geometry
package for delaunayn
and surf.tri
, and these can be plotted with rgl.triangles
from rgl
.
http://www.inside-r.org/packages/cran/geometry/docs/surf.tri
I used this recently here https://gis.stackexchange.com/questions/90635/what-programs-would-allow-for-the-mapping-of-a-geoid-in-3d/90763#90763
Upvotes: 4