Closed rpmeira closed 1 year ago
I apologize if I'm asking it in the wrong place (and I would greatly appreciate a direction to a more appropriate place where to ask this question).
No need to apologize, but the issue guide at the bottom of your post has told you where to ask questions. Please do read the guide.
To answer your question: you don't need to match the color---the default image format is PNG, which supports transparent background, so you can set the chunk optiondev.args = list(bg = 'transparent')
.
For the record, this was cross-posted at https://stackoverflow.com/q/77176541/559676 and also answered there (please do mention cross-posting as instructed by the issue guide; thanks).
Hi, I'm trying to match the background color of a ggplot with the background color of the slide. But there are some areas that I don't know how to change the color of. I don't even know if that is controlled by ggplot or by xaringan, so I apologize if I'm asking it in the wrong place (and I would greatly appreciate a direction to a more appropriate place where to ask this question).
The area I'm talking about is this marked in the image below
I've added borders to the ggplot and the output of the r code chunk so to delimitate better the area I'm talking about. To reproduce this behavior you can run the code below
Get Started