I've created a world map with this code
graph_world <-
rnaturalearth::ne_countries(
type = "countries",
scale = "large",
returnclass = "sf") %>%
filter(admin != "Antarctica") %>%
ggplot() +
ggplot2::geom_sf(
fill = "#264653", # Country colour
size = 0 # Line size
) +
ggplot2::coord_sf(
expand = TRUE,
default_crs = sf::st_crs(4326),
xlim = c(-180, 180),
ylim = c(-90, 90))
graph_world
!
I would like to:
- Remove the white vertical borders on the left and the right. I'd like them to be transparent.
- Shift the map horizontally so that the left hand border goes through the Bering Strait rather than cutting Chukotka off from the rest of Russia.
Note that one way of removing the borders is to set coord_sf(expand = F) but this would also remove the empty space either side of the graph which I want to keep.