最近的地图与GGPLOT和GEOM_SF越过国际数据线
考虑下面的欧洲地图。俄罗斯的部分地区位于地图的另一侧。我将如何“最近”地图“最近”,以使空的空间更少?我想我需要以某种方式将左侧的多边形移到右侧吗?
library(rnaturalearth)
library(tidyverse)
ne_countries(returnclass = "sf", continent = "europe") %>%
ggplot() +
geom_sf()
非常感谢!
由
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用COORD_SF()函数给它一个新的坐标系,以将其转换为您感兴趣的区域中心的位置。
在我的示例中,我从: httpps://proctionwizard.org/
you can give it a new coordinate system to transform it to where your area of interest is centered on your map using the coord_sf() function.
for my example I grabbed a somewhat arbitrary coordinate system defined as well known text (WKT) from: https://projectionwizard.org/