Setting the background in the plotting pane

When I am creating a plot in the plotting pane, the background seems to be transparent (slight pink gridlines visible). I would like to set it to while.

I have used par(bg = 'white'), but it does not change the background.

code
par(bg = 'white')
fig2 <- grid.arrange(p1, p3, ncol=2, widths = c(2.25,2))
plot(fig2, bg='white')

System Information:

  • RStudio Edition: (Desktop or Server)
  • RStudio Version:
  • OS Version:
  • R Version:
  • sessionInfo():

Referred here from support.rstudio.com

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.