-
DescriptionThe following used to create plots with a transparent background but doesn't anymore (at least on in Quarto 1.8.25). Did anything change or did I forget to set something up with my fresh Quarto installation? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
This is handled mostly by knitr and the R default graphic device being used. Could you develop your example to ensure the environment is known? For instance, what does "The following used to create plots with a transparent background but doesn't anymore (at least on in Quarto 1.8.25)" mean exactly? What was the setup where it worked? |
Beta Was this translation helpful? Give feedback.
Also are you sure the plot has no background?
bgis the background of the graphics device, not the plot, thus if the plot has a background, then you won't see the transparent background underneath.Taking a look at
ggplot24.0.0theme_minimal():The plot background is set to
paperwhich is set topaper = "white".So, I'm guessing you updated
ggplot2and missed the part of the changelog talking about the newinkandpaperarguments.