Forum Discussion
ross27
9 years agoAdvocate II
R Visual with transparent background
Is it possible to create an R-Visual with a transparent background i.e. so that you can see an image added to the page background behing the plot the R-Visual generates? Specifically I'm using gg...
- 7 years ago
I don't know whether this will work with ggplot2 but in a visual I made based on the fmsb package I was able to work around this issue by using the par() function before the plotting was called:
# generic par function for graphical elements, call before the plotting
par(bg="transparent")
# this is wear the plotting of the visual actually happens radarchart(data)
jfallt
7 years agoFrequent Visitor
I know this is an old thread but set the fill and the color of the element_rect layer equal to the background color
i.e. plot.background = element_rect(fill = "black", color = "black")
Example Below: