displayRAT()
generates a presentation table. Colors are shown if the
Raster Attribute Table contains RGB columns.
This function requires package gt
.
Arguments
- tbl
A data frame formatted as a GDAL RAT (e.g., as returned by
buildRAT()
orGDALRaster$getDefaultRAT()
).- title
Character string to be used in the table title.
Value
An object of class "gt_tbl"
(i.e., a table created with
gt::gt()
).