ggplot2地图-坐标不正确

时间:2019-03-12 09:42:24

标签: r ggplot2 rgeo-shapefile

我有一幅俄罗斯地区的地图,除了一个巨大的例外,它运行良好

library(dplyr)
library(ggplot2) 
library(raster)
library(rgeos)
russian_map <- getData("GADM", country = "RUS", level = 1)
russia_1 <-  spTransform(russian_map, CRS(my.CRS))
russia_1.simp <- gSimplify(russian_map, tol=1, topologyPreserve=TRUE) %>%
  SpatialPolygonsDataFrame(data=russian_map@data)
map = fortify(russia_1.simp)
ggplot() +
  geom_polygon(
    data = russia_1.simp,
    aes(x = long, y = lat, group = group),
    fill = "lightblue",
    color = "grey20",
  ) + coord_map()+theme_minimal()

生成的俄罗斯地图向右移动,分为两半(见图)。我在做什么错了?

Map of russia

0 个答案:

没有答案