QUAD: QUAD model

Description Usage Arguments Details Value Examples

View source: R/QUAD-model.R

Description

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

Usage

1
2
3
4
5
6
7
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

1
2
3
4
5
6
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)

anglr documentation built on July 29, 2020, 9:06 a.m.