The QUAD model is a silicate-like model for raster data, with implicit geometry.

QUAD(x, ...)

# S3 method for matrix
QUAD(x, ...)

# S3 method for BasicRaster
QUAD(x, ...)

Arguments

x

raster alike, or a matrix

...

ignored

Value

QUAD model

Details

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.

Examples

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)