library(sf)
library(lwgeom)
library(spData)
library(tidyverse)
= st_proj_info()$name
proj_names
= function(name){
reproject = paste0("+proj=", name)
new_crs = st_transform_proj(world, crs = new_crs)
world_reproj png(paste0("f/", name, ".png"))
plot(world_reproj$geom)
dev.off()
# p = ggplot() + geom_sf(data = world_reproj) + ggtitle(name)
# ggsave(paste0("f/", name, ".png"))
}
= safely(reproject)
sreproject %>% map(~sreproject(.))
proj_names
# proj_names[c(120, 126)]
Reuse
Citation
BibTeX citation:
@online{nowosad2018,
author = {Nowosad, Jakub and Nowosad, Jakub},
title = {2018: {A} {Shape} {Odyssy}},
date = {2018-03-25},
url = {https://jakubnowosad.com/posts/drafts/XXXX-XX-XX-2018-a-shape-odyssy.html},
langid = {en}
}
For attribution, please cite this work as:
Nowosad, Jakub, and Jakub Nowosad. 2018. “2018: A Shape
Odyssy.” March 25, 2018. https://jakubnowosad.com/posts/drafts/XXXX-XX-XX-2018-a-shape-odyssy.html.