hugo-apero
hugo-apero copied to clipboard
How can I get rid of the white margins when I use coord_equal()?
Hi everyone
I'm trying to display ggplot2 on my Hugo Apero blog and I get some white margins when I'm using coord_equal(). Any idea how to get rid of them?
Link:
https://rtichoke-blog.netlify.app/blog/2022-03-27-rtichoke-quick-start/
Snippet:
In your code, you're specifying background colour. Removing that part should fix it.
geom_abline(intercept = 0, slope = 1, col = "grey", lty = 2) + theme(
panel.border = element_blank(),
panel.grid.major = element_blank(),
panel.grid.minor = element_blank() #,
#plot.background = element_rect(fill = "#fff7f5")) -- no background necessary