Re: [R-sig-Geo] How to change scale labeling in spplot

2020-08-10 Thread Bacou, Melanie
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

Re: [R-sig-Geo] How to change scale labeling in spplot

2020-08-10 Thread Thomas Adams
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

Re: [R-sig-Geo] How to change scale labeling in spplot

2020-08-10 Thread Tim Salabim
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 >