Vertically align of plots of different heights using cowplot::plot_grid() when using coord_equal()
问题 I am trying to combine two ggplot objects using cowplot::plot_grid() and vertically align them. This is normally quite simple using align = "v" . dat1 <- data.frame(x = rep(1:10, 2), y = 1:20) dat2 <- data.frame(x = 1:10, y = 1:10) plot1 <- ggplot(dat1, aes(x = x, y = y)) + geom_point() plot2 <- ggplot(dat2, aes(x = x, y = y)) + geom_point() cowplot::plot_grid(plot1, plot2, ncol = 1, align = "v") However, this approach fails when the ggplots use coord_equal() because plot_grid() cannot modify