r - 在(光栅)填充轮廓图上覆盖 shapfile
问题描述
我有一个简单的栅格,它通过 raster 包中的filledContour 函数运行,以给出一个填充的等高线图。
我试图将多边形的轮廓覆盖在这个填充的等高线图的顶部,但遇到了麻烦。
阅读 fill.contour 中的注释 - 必须在 plot.axis 部分中向填充的等高线图添加线条,但没有任何运气。
到目前为止,我有这样的事情:
library(raster)
library(rgdal)
test_raster <- raster("test_raster.grd")
test_Shapefile <- readOGR("test_shapefile.shp")
test_filled_contour <- filledContour(test, maxpixels=100000, plot.axes = {
axis(1)
axis(2)
map(test_Shapefile, add=T)
})
栅格和 shapefile 都使用相同的坐标系。
欢迎任何帮助,如果需要,我可以提供数据。
解决方案
推荐阅读
- ruby-on-rails - 当数据旁边有[FILTERED]时,它在rails中意味着什么
- java - Java中的静态变量和实例块
- mysql - 如何指定每个评论在 Reactjs 中有另一个评论/回复?
- azure - Azure 区域 - “阶段”是什么意思?
- c# - C# 仅当列表中存在列名时才从 CSV 文件中读取列
- wordpress - WooCommerce“产品类别列表”小部件似乎无法从可用小部件列表中选择
- flutter - 提供导航功能后对话框不消失
- lua - 如何在 LUA 5.1 Touchosc 中使用变量
- python - 我在 VS Code 中使用相同的 py 文件来学习不同的示例。为什么我删除并编写不同的代码后它仍然运行第一块代码?
- java - java JFrame更新调整窗口大小,但不是自己