Open
Description
I'm creating maps of the US West Coast and California, and want an easy way in R to rotate the map to better feature the coastline.
- I expected to find an easy sf::sf_transform() argument, or ggplot::geom_sf() argument that would take care of it, and didn't.
- I checked the sf documentation, and I calculated the rotation with
rot = function(a) matrix(c(cos(a), sin(a), -sin(a), cos(a)), 2, 2)
, but that seemed like it would be easy to mess up when plotting multiple layers together that need the same rotation. - I ended up asking a colleague for shape files with rotated coordinate reference systems from ArcGIS as a workaround. Which works, but feels a bit clunky still too, since the whole plotting workflow isn't in R.
It's my first time contributing an issue in this project, let me know if you need more details!
Metadata
Metadata
Assignees
Labels
No labels