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

Paul Hiemstra p.hiemstra at geo.uu.nl
Tue Jul 7 09:26:00 CEST 2009


Hi,

You could also have a look at the R wiki, there is a part on spatial 
data visualization using sp-classes:

http://wiki.r-project.org/rwiki/doku.php?id=tips:spatial-data:spatial_data_visualization

cheers,
Paul

Patrick Giraudoux wrote:
> 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
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo


-- 
Drs. Paul Hiemstra
Department of Physical Geography
Faculty of Geosciences
University of Utrecht
Heidelberglaan 2
P.O. Box 80.115
3508 TC Utrecht
Phone:  +3130 274 3113 Mon-Tue
Phone:  +3130 253 5773 Wed-Fri
http://intamap.geo.uu.nl/~paul



More information about the R-sig-Geo mailing list