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.
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:
grid.table
data.frame
library(gridExtra) grid.table(mydf)
which should give something that looks like this: