Skip to content
Prev 69296 / 398530 Next

plotting image/contour on irregular grid

On Fri, 6 May 2005, m p wrote:

            
One possibility is to interpolate a regular grid using interp() in the 
akima package, then use image() or contour(). Another is to use 
levelplot() with formula z ~ x + y in the lattice package, and the 
equivalent contourplot(); here, the x,y pairs must lie on a grid, but do 
not need to fill the grid (so are regularly spaced with missing grid 
cells).