Tom,
Try something like that:
spplot(raster, at=1:3,
col.regions=c(col1, col2, col3),
colorkey=list(labels=list(labels=c("Af", "Am", "Aw"),
at=1:3+.5)))
Else use package `tmap` (friendlier interface).
--Mel.
On 8/10/20
Hi Tim,
Yes, basically, I have and just did again, try this -- same result...
Tom
On Mon, Aug 10, 2020 at 4:34 PM Tim Salabim wrote:
> Have you tried
> colorkey=list(labels = list(labels = list("Af","Am","Aw")))
> ?
>
>
>
> On Mon, Aug 10, 2020, 22:01 Thomas Adams wrote:
>
>> Hi all,
>>
>> I
Have you tried
colorkey=list(labels = list(labels = list("Af","Am","Aw")))
?
On Mon, Aug 10, 2020, 22:01 Thomas Adams wrote:
> Hi all,
>
> I have searched for examples to change the labeling for raster data (two
> panels) consisting of integer values (1, 2, and 3). In the scale I want to
> lab
Hi all,
I have searched for examples to change the labeling for raster data (two
panels) consisting of integer values (1, 2, and 3). In the scale I want to
label these as "Af", "Am", Aw".
My code looks like:
colp <- colorRampPalette(c("#96", "#FF", "#FF"))
brks<-seq(0,3,1)
spplot(KG_