Howdy all: I have a simple question. Given two sp objects, a
SpatialGridDataFrame tdmean and SpatialLinesDataFrame states I want to plot
tdmean as an image and draw the lines on top. Can this be done with sp?


> class(tdmean)
[1] "SpatialGridDataFrame"
attr(,"package")
[1] "sp"
> is.projected(tdmean)
[1] TRUE
> class(states)
[1] "SpatialLinesDataFrame"
attr(,"package")
[1] "sp"
> is.projected(states)
[1] TRUE
> # 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)
>

_______________________________________________
R-sig-Geo mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to