Quadrangle Mesh

Create surface forms from matrix or 'raster' data for flexible plotting and conversion to other mesh types. The functions 'quadmesh' or 'triangmesh' produce a continuous surface as a 'mesh3d' object as used by the 'rgl' package. This is used for plotting raster data in 3D (optionally with texture), and allows the application of a map projection without data loss. There are discrete forms of these continuous surfaces available with 'dquadmesh' and 'dtriangmesh' functions.


Build a quadmesh in R.

r <- setExtent(raster(volcano), extent(0, 100, 0, 200))
qm <- quadmesh(r)
scl <- function(x) (x - min(x))/diff(range(x))
shade3d(qm, col = grey(scl(qm$vb[3,qm$ib])))


quadmesh 0.1.0

  • basic quadrangle mesh support

  • Added a NEWS.md file to track changes to the package.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.3.0 by Michael D. Sumner, a month ago


Report a bug at https://github.com/hypertidy/quadmesh/issues

Browse source code at https://github.com/cran/quadmesh

Authors: Michael D. Sumner [aut, cre]

Documentation:   PDF Manual  

GPL-3 license

Imports raster, gridBase, viridis, png, sp, geometry, reproj

Suggests datasets, knitr, rmarkdown, palr, rgl, testthat, ncdf4, covr, vdiffr, proj4

Imported by spex.

See at CRAN