paleolimbot / ggspatial

Enhancing spatial visualization in ggplot2
https://paleolimbot.github.io/ggspatial
368 stars 35 forks source link

Use `dpi` on layer_spatial.Raster #95

Closed dieghernan closed 2 years ago

dieghernan commented 2 years ago

I found that dpi was not passed as parameter on the functions. This affects only when lazy = TRUE. This PR fixes that issue on Raster* layers, I fixed it also for SpatRast layers on #94. See my comment https://github.com/paleolimbot/ggspatial/pull/92#issue-1022364809 about the odd bug

Also, I added tests and updated the snapshots on figs/ folder.

paleolimbot commented 2 years ago

was this fixed in #94 or can this PR be closed?

dieghernan commented 2 years ago

Hi @paleolimbot ,

94 fixes it for terra package (SpatRaster*), this applies the same fix for raster (SpatialRaster*),