Skip to content
Prev 23173 / 29559 Next

spplot grid data - scale colours customizing

Dear All,

I'm trying to understand how spplot work with colour managing with gridded
data.

I have na Object of class SpatialGridDataFrame
Coordinates:
      min     max
x 2267600 2325600
y 4693800 4826200
Is projected: TRUE
proj4string :

with 12 data for column attribute

I'm able to plot the SpatialGridDataFrame with:

spplot(fogli_Sup_Pioggia,as.table=TRUE, col.regions = cm.colors(100) ,
key.space = "right")

but I want to select where change in colour appears and not leave spplot to
do it by it self.
I tried passing cuts option in this way:

spplot(fogli_Sup_Pioggia,as.table=TRUE, col.regions = cm.colors(100) ,
cuts=c(1,2.5,3),key.space = "right")

It seems working but now the colour is not graduated any more but.
How can I have a graduated palette again?
Thanks