用R绘制地图总是各种错误...真是....
没啥好说的,注意看看group和id的属性吧:
错误实例:geom_polygon(data = coast_map, aes(x = long, y = lat, group = id), fill = "grey95", colour = "grey60")
正确实例:geom_polygon(data = coast_map, aes(x = long, y = lat, group = group), fill = "grey95", colour = "grey60")
注意看数据的结构,分类哪个更好就用哪个