thomasp85 / ggfx

Filters and Shaders for 'ggplot2'
https://ggfx.data-imaginist.com
Other
167 stars 4 forks source link

is it possible to manually adjust the resolution of with_raster()? #19

Open k-hench opened 3 years ago

k-hench commented 3 years ago

Hi 👋,

I want to apologize if this is the wrong place for this, since this likely is more of a feature-wish than an issue 😬.

Basically, I love the idea of with_raster(), but currently I am only able to control the resolution (dpi on the final figure) of the rasterized ggplot layer indirectly, by up-scaling the exported figure. Yet, when trying to keep plot configurations consistent over many plots (eg for a scientific publication), this forces one to also correct a zillion of other settings (font size, line widths, symbol sizes etc).

Hence, my question: is it possible to somehow adjust the resolution of with_raster() (now or potentially in the future)? (Also - apologies if this is a case where I am just to silly to RTFM correctly :fearful:)

thomasp85 commented 3 years ago

This is indeed the right place... 🙂

It is not currently possible, but would be in the future once #9 has been implemented. ggfx is in the process of release right now so it will not be part of the first version, but definitely a priority in the future

k-hench commented 3 years ago

Awesome - thanks for the light-speed reply :relaxed: :+1: