I know that gridExtra has been updated. As a result, I'm left wondering how to change title sizes. This no longer works
grid.arrange(a, b, c, d,ncol=2,
nrow=2, main=textGrob("Title", gp=gpar(fontsize=15,font=8)))
First, import the package
grid with either
top in your code.
library(grid) grid.arrange(a, b, c, d,ncol=2, nrow=2, top=textGrob("Title", gp=gpar(fontsize=15,font=8)))
I ran into a similar issue with
gridExtra v2.0.0, receiving the following error:
Error in arrangeGrob(...) : could not find function "textGrob"
indicating that grid wasn't loaded as a dependency for
gridExtra. I resolved it by requiring or importing the library
grid by either:
Hope that helps.