我想将一个栅格图层与一个点状的shapefile叠加在一起。我查看了之前的答案,但是仍然有问题。我可以单独绘制点状shapefile和栅格图层,但无法同时绘制它们。
据我所见,它们应该处于相同的投影和位置。
据我所见,它们应该处于相同的投影和位置。
require(maptools)
myproj <- "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0"
shape <- readShapeSpatial("directory/mypoints.shp", proj4string = CRS(myproj))
plot(r <- raster(listVI[200]))
plot(shape)
rasterVis
中使用layer
。请参考?rasterVis::levelplot
中的示例。 - jbaums