Thanks Felix, this is the answer that I was looking for!
points <- list("sp.points", Centroids, pch = 21,col="green")
polys <- list("sp.lines", Counties_lines, col="white")
ptLabels =
list("panel.text",LatLongs[,1],LatLongs[,2],labels=ss,col="white",pos=2)
print("plotting the grob")
browser()
g
On 9/30/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> # Assume: ss[] is a char vector of point labels, one per Centroid element..
> # display list entries for first two points
> #
> pt1 = list("sp.text",c(LatLongs[1,1],LatLongs[1,2]),ss[1],col="white",pos=2)
> pt2 = list("sp.text",c(LatLongs[2
Hello:
Im working on a method to create multilayer raster/vector plots using
spplot() and supporting functions. The question is: how do I efficiently
add display list instructions for plotting the point labels that works
for different sized point vectors?
Here is a working 'brute force' approach