[R] Problems with svg() exporting graphics with gradients
Bert Gunter
bgunter@4567 @end|ng |rom gm@||@com
Thu Apr 3 20:11:51 CEST 2025
The R-help listserv deletes most attachments (as security risks) and your
attachments (I assume) did not come through. Provide code for a minimal
reprex or a site from which those interested in helping can get your plots
instead if no one who already knows about this issue responds. You might
also try posting on the Posit/ggplot Help site, as someone there may be
able to help.
Cheers,
Bert
"An educated person is one who can entertain new ideas, entertain others,
and entertain herself."
On Thu, Apr 3, 2025 at 11:00 AM Calliste DORLEANS <
calliste.dorleans using gmail.com> wrote:
> Hello,
>
> My name is Calliste, I am a postgraduate student in data analysis and I use
> R and R Studio as a daily tool for my work and studies. I am used to
> exporting my plots with the svg() function from the grDevices package. I
> noticed since February 2025 that the ggplot graphics containing gradients
> are not correctly vectorised (see below the difference between the graphics
> from November 2024 and February 2025) when exported with the svg() function
> and are thus of a lesser quality. However, it seems to not happen when
> using a basic plot() function and it doesn't happen either with ggplot
> graphics that don't contain a gradient variable. I looked for solutions on
> the Internet, but I didn't find any information, that is why I contacted
> you. I don't know if the package has had some recent updates, but it would
> be of great help for me if you have any idea how to fix this.
>
> Thanks in advance for your help,
>
> Sincerely,
>
> Calliste Dorléans
>
> graph_doub.svg is from November 2024
> graph_serie.svg is from February 2025
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> https://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
[[alternative HTML version deleted]]
More information about the R-help
mailing list