I have a multiple plot chart:
layout(matrix(c(1:4), 2, 2, byrow = FALSE), widths=c(1,1), heights=c(1,1))
plot(1:6)
plot(2:7)
plot(3:8)
I now want to add a small table in the bottom lower corner. I tried:
library(gridExtra)
Table1<- data.frame( a=1:6,b=2:7,c=3:8)
tt <- ttheme_default(colhead=list(fg_params = list(parse=TRUE)))
tbl <- tableGrob(Table1, rows=NULL, theme=tt)
grid.arrange( tbl)
but this does not enter into the lower corner, but creates a new plot.
I would like to be able to solve this problem using base graphics plot()
rather than ggplot()
.
Thank you for your help.