When I try to remove the strips of a facet plot, e.g. with
ggplot(mtcars) +
geom_point(aes(x=drat, y=mpg, color=cyl)) +
geom_line(aes(x=drat, y=mpg, color=cyl)) +
facet_grid(vs~am) +
theme(strip.text.y = element_blank(),
strip.background.y = element_blank()
)
I get the error message
Figure margins too large
with ggplot version 3.3.3, when I am running this in PyCharm. When I run it in RStudio, the issue does not arise.
Why is that and what can I do about it?