Margins between plots in grid.arrange

前端 未结 1 620
一生所求
一生所求 2021-01-11 14:32

I dont seem to be able to find a solution as to how to increase the space between two plots with grid.arrange. I find no clue as to how to proceed. I dont want to change the

1条回答
  •  迷失自我
    2021-01-11 14:57

    the standard way is to change the plot margins,

    pl = replicate(3, ggplot(), FALSE)
    grid.arrange(grobs = pl)  # default settings
    

    margin = theme(plot.margin = unit(c(2,2,2,2), "cm"))
    grid.arrange(grobs = lapply(pl, "+", margin))
    

    0 讨论(0)
提交回复
热议问题