I have a table, and I want to print a title above it:
t1 <- tableGrob(top_10_events_by_casualties, cols=c(\"EVTYPE\", \"casualties\"), rows=seq(1,10)) gri
Another option is:
library(gridExtra) grid.arrange(top="Iris dataset", tableGrob(head(iris)))
You still might want to do some tweaking with the padding.