[R-sig-Geo] Spplot error in change value color

pierluigi de rosa pierluigi.derosa at gmail.com
Fri Jul 24 14:49:44 CEST 2015

Dear all,

I have a simple question.
I'm managing a SpatialPointsDataFrame with 12 columns

I'm able to plot it
this works:
> spplot(punti_eventi_siccita,zcol=6)  #only 6 column

I want to set value where change color
> custs=seq(20,250,50)
If I run this:

> spplot(punti_eventi_siccita,zcol=6,
I have:
Error in legend[[i]]$fun : $ operator is invalid for atomic vectors

where I'm wrong?
I fund several example on internet and on several books but the code I
wrote above should work

Many thanks

Ing. Pierluigi De Rosa (PhD)
cel: 3497558268 / fax: 075 7823038
skype: pierluigi.derosa

	[[alternative HTML version deleted]]

More information about the R-sig-Geo mailing list