gridExtra
my_hist<-ggplot(diamonds, aes(clarity, fill=cut)) + geom_bar()
my_table<- tableGrob(head(diamonds)[,1:3],gpar.coretext = gpar(fontsize=8),gpar.coltext=gpar(fontsize=8), gpar.rowtext=gpar(fontsize=8))
pdf("myplot.pdf")
grid.arrange(my_hist,my_table, ncol=2)
dev.off()
pdf: pdf ( "myplot.pdf", width = 10, height = 6)
, :
blankPanel < -grid.rect(GP = gpar (Col = "" ))
