
Automatically center a projection on the plotted map
[social4i size="small" align="align-left"]
-->
[This article was first published on modTools, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Following this previous post and this discussion on Mastodon, I wrote a function that wraps a combination of functions from the ‘terra’ package to project a SpatRaster or SpatVector layer while automatically centering the projection on that layer, to minimize visual distortion:
projectCentered <- function(x, #…
The skinny
The skinny isn't ready yet — notes appear once the transcript is processed.