Skip to content
Prev 17225 / 29559 Next

How to show the color ramp legend with discrete data in spplot ?

On 01/21/2013 10:26 PM, Oscar Perpi?an wrote:
Thanks for the suggestion.

I committed this to sp; in particular with sp from svn on r-forge one
can now e.g. do

loadMeuse()
spplot(meuse[c("lead", "zinc")], edge.col=1, colorkey=TRUE,
cuts=c(10,100,200,500,1000,2000))

edge.col = 1 results in black lines around the symbols,
colorkey = TRUE results in levelplot-type legend, instead the one with
the symbols; the default nr of colors used will also be large (100).

Comments welcome,