On Thu, 22 Jun 2006, Andy Bunn wrote:
Howdy all: I have a simple question. Given two sp objects, a
SpatialGridDataFrame tdmean and SpatialLinesDataFrame states I
tdmean as an image and draw the lines on top. Can this be done with sp?
[1] "SpatialGridDataFrame"
attr(,"package")
[1] "sp"
[1] "SpatialLinesDataFrame"
attr(,"package")
[1] "sp"
# plot states and put the image on top: works but is unsatisfying
plot(states,axes=T)
image(tdmean["z"],add=T)
# plot image and put the state lines on top: doesn't work
image(tdmean["z"],axes=T)
lines(states)
Cany you please try:
image(tdmean, "z", axes=T)
plot(states, add=TRUE)
I don't think there is a lines() method for SpatialLines* objects.