Open madelinestanley opened 3 years ago
Hey Madeline,
I'm not sure if this is exactly what you're looking for but I found that changing the colour of the plot.background element in my theme removed the border.
plot.background = element_rect(colour = NA)
Let me know if that works for you!
Unfortunately that didn't work, but thanks for offering that suggestion. It doesn't seem to be a problem with the plot itself, but a border around the entire figure (including plot, title, labels etc.)
Hi Aidan,
I took your comment into consideration and looked at my theme and the theme I am adapting from (theme_bw). Turns out instead of replacing with plot.background=element_rect(colour=NA), I just had to remove reference to it entirely. Once I re-ran it this way, it completely removed the plot background I was having trouble with.
Thank you!
Glad to see it has worked. Unfortunately modifying themes can get a bit tricky dues to some hidden or unexpected defaults on whichever theme you are modifying. I recommend that instead you modify the theme_pepe()
function. There you have all possible things that can be changed, so you can look at them one by one and see if something could conflict with something else.
There was a previous issue that was kind of related where i commented on some of these problems with hidden defaults
An i mean modify by hand, one element the whole thing, not using the modify function, that would just give you the same issues
Thanks Pepe and Aidan
I am getting a border around my entire figure (not just the plot) that I cannot figure out how to remove. See my figure from Week 8 homework attached as an example, you may be able to see a fine black line around the top, left and bottom of the figure.
Any ideas?
nutrients_figure.pdf