【发布时间】:2021-08-05 19:36:29
【问题描述】:
请考虑reprex 中的地图。
我不希望这成为政治,但底线是我需要“北塞浦路斯”之间的边界
“塞浦路斯”(您可以在 ww_ini$name_long 中找到它们)消失。地图中的所有其他边界都可以保留。
关于如何删除地图中的单个边框的任何想法?
非常感谢!
library(tidyverse)
library(rnaturalearth)
library(sf)
#> Linking to GEOS 3.7.1, GDAL 2.4.0, PROJ 5.2.0
ww_ini <- ne_countries(scale = "medium",
type = 'map_units',
returnclass = "sf")
bb <- ne_download(type = "wgs84_bounding_box", category = "physical",
returnclass = "sf")
#> OGR data source with driver: ESRI Shapefile
#> Source: "/tmp/RtmpH6Sa4R", layer: "ne_110m_wgs84_bounding_box"
#> with 1 features
#> It has 2 fields
gpl <- ggplot(data = ww_ini) +
geom_sf( col = "black", lwd = 0.3 )+
coord_sf(xlim=c(-20,45), ylim=c(30, 73) ) +
theme_minimal()
gpl
由reprex package (v2.0.0) 于 2021-08-05 创建
【问题讨论】: