oswaldosantos / ggsn

R package to add north symbols and scale bars to maps created with ggplot or ggmap
http://oswaldosantos.github.io/ggsn/
GNU General Public License v2.0
161 stars 9 forks source link

Support for terra rasters #58

Open sambweber opened 1 year ago

sambweber commented 1 year ago

Hi Oswaldo - Feature request rather than issue. It would be great to add support for terra raster datasets to be used as the 'data' used for creating the ggplot in ggsn::north and ggsn::scalebar. At the moment I have to manually extract the extents using terra::ext and then set them in using x.min, x.max, y.min, y.max. Hopefully quite an easy one to implement and would remove an annoying step. Thanks!