[R] Plotting irregular grid as image or persp
drf5n at maplepark.com
Fri Aug 27 23:06:41 CEST 2004
I have an array of 2d node locations and an array triangles, and would
like to plot something like a image or persp.
An example of doing it with rgl is:
# wget http://www.maplepark.com/~drf5n/extras/teapot.nc
x<-readline("Hit any key to continue")
demo.teapot() # produces a 3d rgl plot of the teapot
I wrote some rgl.* helper functions (
to drive rgl.points(), rgl.lines(), rgl.triangles(), rgl.quads() such that
I can call :
rgl.drf5n.polys(verts=l,conns=z) # plot points, wireframe, triangles,
# quads, depending on shape of conns)
but I'd really like to be able to plot an irregular grid with the
known triangles as specified colors, and I'm not sure
what would be the best package.
library(fields) extrapolates the image beyond the data
library(tripack) refits and plots its own data
What should I use? Suggestions?
drf at vims.edu (804)684-7900w
drf5n at maplepark.com (804)642-0662h
More information about the R-help