ggplot2 transparency so background is same as slide colour

I'd like my ggplot to blend in to the background slide colour - I thought that setting background or paper to be transparent would solve this, but it doesn't seem to - am I going about this the right way? See an example here: GitHub - njtierney/ggplot-transparency-test

set the chunk options:

{r, dev = "png", dev.args=list(bg="transparent")}

2 Likes

This is great and it works!

1 Like