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

Roman Luštrik roman.lustrik at gmail.com
Sat Jul 25 08:04:55 CEST 2015


I noticed you have a typo, you are specifying `cuts` to the colorkey,
whereas you create a `custs` object.

Cheers,
Roman


On Fri, Jul 24, 2015 at 2:49 PM, pierluigi de rosa <
pierluigi.derosa at gmail.com> wrote:

> 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,
> colorkey=list(labels=list(at=cuts),at=cuts))
> 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
> Pierluigi
>
>
> --
> Ing. Pierluigi De Rosa (PhD)
> cel: 3497558268 / fax: 075 7823038
> skype: pierluigi.derosa
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



-- 
In God we trust, all others bring data.

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list