Created
June 8, 2022 13:09
-
-
Save charliejhadley/7eab29106771b2da5bff144d3a48ec46 to your computer and use it in GitHub Desktop.
stretchy-antarctica.R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tidyverse) | |
library(sf) | |
library(rnaturalearthdata) | |
countries110 %>% | |
st_as_sf() %>% | |
st_transform(crs = 3857) %>% | |
ggplot() + | |
geom_sf() |
That's a more direct solution than what I was doing by cropping within coord_sf(), thanks!
coord_sf(crs = 3857, expand = TRUE,
ylim = c(-pi * 6378137, pi * 6378137))
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hacky improvement:
Created on 2022-06-08 by the reprex package (v2.0.1)