r - R不正确的显示形状文件
问题描述
我尝试从此站点在 R 中打开形状文件
shape <- readOGR(dsn = "/home/user/QGis/50m_physical", layer = "ne_50m_land")
shape_bord <- readOGR(dsn = "/home/user/QGis/50m_cultural", layer = "ne_50m_admin_0_boundary_lines_land")
map<- ggplot()+
geom_polygon(data = shape, aes(x = long, y = lat, group = group), colour = "black", fill = NA)+
geom_polygon(data = shape_bord, aes(x = long, y = lat, group = group), colour = "green", fill = NA)
一些文件在行政边界上有双线。
我怎么解决这个问题?
https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/culture/ne_50m_admin_0_boundary_lines_land.zip
解决方案
推荐阅读
- python - 提供的参数“file_obj”似乎不是有效的 hickle 文件(python 版本 3.6.9 中的 Hickle)
- c# - cshtml 中的 .NET ASP MVC for/foreach 无法正确生成 html
- java - 我不知道如何在 Java 中使用十进制格式
- javascript - 不和谐.js | 回复消息(实际回复带有回复装饰)
- html - SASS 将 -ms 前缀添加到 css 网格,但它在 IE 中不起作用
- javascript - 如何在zapier中重用javascript函数
- php - 我的 Mysqli 代码没有在我的数据库中插入数据
- python - 从 Python 中的输入创建字典
- java - 首次构建时的 Android (Java) 应用程序错误“找不到 kotlin-stdlib-jdk7-1.3.72.jar”
- python - 将 df 中的 1 列转换为键,将另一列转换为值以形成字典