R data.frame to table image for presentation

dataframe, image, r

Solution

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

library(gridExtra)
grid.table(mydf)

which should yield something that looks like:

Problem

I have a data.frame df ``` Name Count Apples 12 Oranges 22 Bananas 14 ``` Would like to convert this to a table like an image file so that I can use it in my presentation.

Original source

Related problems