QUAD: QUAD model

View source: R/QUAD-model.R

QUADR Documentation

QUAD model

Description

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

Usage

QUAD(x, ...)

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

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

Arguments

x

raster alike, or a matrix

...

ignored

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.

Value

QUAD model

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)

r-gris/rangl documentation built on Nov. 18, 2022, 2:43 a.m.