Forum Discussion

ross27's avatar
ross27
Advocate II
9 years ago
Solved

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...
  • arvidb's avatar
    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)