SpaDES::downloadData("LccToBeaconsReclassify", baseDir)
unzip(zipfile = file.path(baseDir, "LccToBeaconsReclassify", "data", "LandCoverOfCanada2005_V1_4.zip"),
files = "LCC2005_V1_4a.tif",
exdir = file.path(baseDir, "LccToBeaconsReclassify", "data"))
lcc05 <- raster(file.path(baseDir, "LccToBeaconsReclassify", "data", "LCC2005_V1_4a.tif"))
getColors(lcc05)
...
and it looks like #000000 is the trigger to "end" the legend.
Is that universal? i.e., can we assume that a colortable is either the correct length (Steve's use case) or it the "first and last" colors are contained between the #000000 values of the colortable?