I\'m trying to produce a png chart using ggplot2 and ggsave (with Cairo) in R. I\'m having an issue with customising the theme to remove margins.
Currently I\'m usin
According to the source code, you also need to set the labels to NULL,
last_plot() + labs(x=NULL, y=NULL)
alternatively, set unit(-0.5, "line") for the bottom and left margins.
unit(-0.5, "line")