QUAD | R Documentation |
The QUAD model is a silicate-like model for raster data, with implicit geometry.
QUAD(x, ...) ## S3 method for class 'matrix' QUAD(x, ...) ## S3 method for class 'BasicRaster' QUAD(x, ...)
x |
raster alike, or a matrix |
... |
ignored |
The object table only stores the raster extent, and the pixel values are on the 'quad' table. This is only supported for single-layer 2D regular rasters.
The 'color_' idiom works, but must be put on the '$quad' table. Very much still in-development.
QUAD model
qq <- QUAD(raster::raster(volcano)) mesh_plot(qq) qq$quad$color_ <- rep(c("black", "white"), length.out = nrow(qq$quad)) mesh_plot(qq) qq$quad$color_ <- palr::image_pal(qq$quad$value, col = grey.colors(10)) mesh_plot(qq)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.