Removing ggplot2 border when using custom background color in Distill

Hi guys,

Recently I started using a different color for my background in ggplots. However, when kniting to a Distill document, the ggplot has a black border.

I've tried to remove the border with cowplot::panel_border(remove = TRUE), and the "theme()" function, too. None of these were successful. I used them as follows:

p + 
cowplot::panel_border(remove = T)
p + theme(
  panel.border = element_blank()
)

Any ideas?

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.