I have created a boxplot in R using ggplot, changing the background of the plot and panel, with the plan that I can export it and then use it in a document where it will match the background of the document, thus essentially looking transparent. This almost works, but I'm stymied by a thin white line that appears around the entire image when it's exported and then copied into the document.
I've tried removing the margins with the following code, but this doesn't remove the line - it only removes the margins around the plot (as you might imagine). Other answers I have found are variations on this theme.
boxplot +
theme(plot.margin = grid::unit(c(0, 0, 0, 0), "mm"))
Any help? I've included an image to make it clear what I'm talking about...