Does anyone know how to import a legend for a raster layer (loaded as a .tif) into R such that it can be attached to the raster file itself and used in plotting?
In this case, I am using the GLC2009 V2.3 data, available from: http://due.esrin.esa.int/page_globcover.php
The legend is stored separately as a .xls file, as well as .lyr and .dsr files. I believe the latter 2 extensions are for ArcINFO files but regardless I have never used either in R.
I can import the .xls legend as follows easily:
GLC_Legend
In this case, I am using the GLC2009 V2.3 data, available from: http://due.esrin.esa.int/page_globcover.php
The legend is stored separately as a .xls file, as well as .lyr and .dsr files. I believe the latter 2 extensions are for ArcINFO files but regardless I have never used either in R.
I can import the .xls legend as follows easily:
GLC_Legend