powered by
displayRAT() generates a presentation table. Colors are shown if the Raster Attribute Table contains RGB columns. This function requires package gt.
displayRAT()
gt
displayRAT(tbl, title = "Raster Attribute Table")
An object of class "gt_tbl" (i.e., a table created with gt::gt()).
"gt_tbl"
gt::gt()
A data frame formatted as a GDAL RAT (e.g., as returned by buildRAT() or GDALRaster$getDefaultRAT()).
buildRAT()
GDALRaster$getDefaultRAT()
Character string to be used in the table title.
buildRAT(), GDALRaster$getDefaultRAT()
vignette("raster-attribute-tables")
# see examples for `buildRAT()`
Run the code above in your browser using DataLab