[R-sig-Geo] can spplot add features ?

Patrick Giraudoux patrick.giraudoux at univ-fcomte.fr
Tue Jul 7 03:48:55 CEST 2009


Dear listers,

I would like to add the border of  a country (SpatialPolygons object 
called ChinaBorder) in a spplot built as following:

mypal<-colorRampPalette(c("white", "cyan", "blue","green","yellow","red"))
statSpat<-SpatialPointsDataFrame(chinagrid,data.frame(n=z))
gridded(statSpat)<-TRUE
spplot(statSpat,col.regions=mypal)

I cannot managed to overlap ChinaBorder to statSpat with the 'panel' 
argument of spplot.

Any idea about how to proceed ?

Patrick



More information about the R-sig-Geo mailing list