首页 > 解决方案 > 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

标签: rggplot2gisshapesshapefile

解决方案


推荐阅读