Closed janlimbeck closed 6 months ago
See also https://github.com/r-spatial/stars/issues/573 - for raster maps png usually does a better job. For pkgdown, you can turn using ragg off, see https://github.com/r-spatial/stars/blob/main/_pkgdown.yml
Thanks for the response!
I am using the code within an RShiny application. I am aware that I can turn ragg off globally but would like to avoid that if possible due to the other benefits that ragg provides over the native rendering device.
Is there a way to select a specific rendering device for one individual RShiny plot? That would be an acceptable workaround for me.
One work-around for you may be to add a thin border of the same colour as the fill. Haven't tried it myself, and not sure if it has effect on performance -- but if lucky it may achieve what you want without playing with graphics devices etc...
See here: https://github.com/r-lib/ragg/issues/103#issuecomment-1458204888
When using ragg as the png rendering device I observe striping/visible borders e.g. when plotting spatial data using spplot from the sp package. I think under the hood lattice is used.
With default rendering device:
With ragg as rendering device: