I am trying to compile four graphs with grid.arrange()
and to reduce the margins of each plot so that they are nice and compact. I would like to use theme(plot.margin=unit(c(x, x, x , x), "cm"))
(other solutions welcome).
A similar question was asked a while ago: here
However, plot.margin
now requires the argument units
which does not have a default. I could not find any explanations about what R expects in this argument. Would someone have an example?
For a reproducible example, please use the one provided in the old question. Thanks!