Hi - I've a (probably basic) plotting problem which I'm having
difficulty solving with reference to ?spplot, and ?panel.spplot. I have
a SpatialPolygonsDataFrame and a SpatialPointsDataFrame. The points are
the centroids of the polygons. The polygons plot very nicely through
spplot()when coloured in a ramp according to one variable in the data
frame. So do the points.

 

But... I need to plot the points over the polygons, using either a
colour ramp or a cex ramp/bubble plot, and I'm stuck. I can get the
points to plot in the correct location by passing 

 

> spplot(polygon.df,zcol="var1", ..., sp.layout=list("sp.points",
points.df))

 

But I can't see how to colour or cex-scale the points through the
sp.layout argument. Can someone point me in the right direction?

 

Thanks in advance,


Rich

 

PS: I know this is going to end up with a lot of work for the viewer of
the output, but they asked for it. It's visualisation of local R-sq and
slope from a GWR, to make things worse   :)

 

 


	[[alternative HTML version deleted]]

