[R] Problems with svg() exporting graphics with gradients
Paul Murrell
p@u| @end|ng |rom @t@t@@uck|@nd@@c@nz
Thu Apr 3 21:40:44 CEST 2025
Hi Calliste
Please feel free to send me the SVG files directly if you like.
However, as Bert says, the R code that produces the files would be very
helpful as well.
Thanks
Paul
On 4/04/2025 7:11 am, Bert Gunter wrote:
> 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]]
>
> ______________________________________________
> 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.
--
Dr Paul Murrell
Te Kura Tatauranga | Department of Statistics
Waipapa Taumata Rau | The University of Auckland
Private Bag 92019, Auckland, New Zealand
64 9 3737599 x85392
paul using stat.auckland.ac.nz
www.stat.auckland.ac.nz/~paul/
More information about the R-help
mailing list