Dear all,

I have a raster file in which cells have either values of -999, or values ranging from 0-3 (apart from NA values obviously). I want to make a KML file from this raster in which I would  like cells with values -999 to be displayed in gray and cells with values from 1-3 be colored according to a chosen color gradient (eg yellow to red).

Is there a way to do this directly in the KML function of Raster package, or should I explore alternative ways to go about this?

many thanks for any suggestions you might have!

cheers Evert

	[[alternative HTML version deleted]]

