R显示形状文件不正确

时间:2019-09-21 19:27:02

标签: r ggplot2 gis shapes shapefile

我尝试从this site的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)

某些文件的管理边界为双行。

我该如何解决这个问题?

enter image description here https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/cultural/ne_50m_admin_0_boundary_lines_land.zip

0 个答案:

没有答案