Skip to content
Prev 23184 / 29559 Next

plotKML - set color according to category

Dear Adam,

Thank you for your response!
I run your script on the raster data and I think the requirements are 
the same. For my point data set I already have a colomn with a factorial 
variable (in this case the phases of the annual cylce) and the points 
are colored according to them.

But imagine you would make maps of your raster data of two different 
countries, where the second one has different categories from the other 
(e.g. the second country could have values [13,14], 
(14,15],(15,16],(16,17] instead of [14,15],(15,16],(16,17],(17,18) for 
the Philippines). Then the plotKML would use the same four colors for 
these two maps, even though the values are not the same.

Could you now also define that e.g. [13,14] is white, (14,15) light 
yellow and so on and use the same color for the same value in the 
different plots?

Thanks again and kind regards,
Almut

Am 8/4/2015 um 7:09 AM schrieb Adam Sparks: