Top to bottom alignment of two ggplot2 figures

前端 未结 3 1877
庸人自扰
庸人自扰 2020-12-10 19:17

I realize that the align.plots function from the ggExtra package has been deprecated and removed. However, I am using my own version as it seems to

3条回答
  •  盖世英雄少女心
    2020-12-10 19:56

    To solve the problem using the align.plots method, specify respect=TRUE on the layout call:

    grid_layout <- grid.layout(nrow=2, ncol=2, widths=c(1,2), heights=c(2,1), respect=TRUE)
    

提交回复
热议问题