I am using the below code and getting this plot. Is there a way to remove the extra white space between Yaxis title and the plot in figure 1? When I run plot1 separately it doesn’t have the extra space, only gets added when I use ggplotGrob to add two plots together.
Code :
library(gtable)
require(grid)
g1 <- ggplotGrob(plot1)
g2 <- ggplotGrob(plot2)
g <- rbind(g1, g2, size = "last")
grid.newpage()
grid.draw(g)