ggplot: How to increase spacing between faceted plots?

前端 未结 1 1526
予麋鹿
予麋鹿 2020-12-07 12:52

I have several faceted histograms (obtained with the command below) which are nicely plotted one under the other. I would like to increase the spacing between them, however,

1条回答
  •  囚心锁ツ
    2020-12-07 13:20

    Use the theme function:

    library(grid)
    
    p + theme(panel.spacing = unit(2, "lines"))
    

    See also here: Slicing plots generated by ggplot2

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