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.
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:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With