R data.frame to image table for presentation

I have data.frame df

Name Count Apples 12 Oranges 22 Bananas 14 

I would like to convert this to a table as an image file so that I can use it in my presentation.

+6
source share
1 answer

The most direct option is probably to use grid.table from the gridExtra package. Assuming your data.frame is called "mydf", it's just as simple:

 library(gridExtra) grid.table(mydf) 

which should give something that looks like this:

enter image description here

+21
source

All Articles