Hi,
I would like to make a plot with ggplot2 and import it into illustrator. Though I set the theme as such that there should be a transparent background, all of my plots have a white edge around them which I can't get rid of. For example:
library(ggplot2)
p = ggplot()+
geom_function(fun = dnorm)+
theme(
rect = element_rect(fill = "transparent"),
panel.background = element_blank(), #transparent panel bg
panel.grid.major = element_blank(),
panel.grid.minor = element_blank()
)
ggsave(
plot = p,
filename = "example.eps",
bg = "transparent",
width = 7,
height = 7,
dpi = 500
)
when I export the plot and import it into Adobe Illustrator over a coloured background I get this:
The red circle indicates the white edge I'd like to get rid of. Any ideas?
Thanks in advance!