Learn R Programming

anglr (version 0.7.0)

QUAD: QUAD model

Description

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

Usage

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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab