R data.frame to table image进行演示 [英] R data.frame to table image for presentation
本文介绍了R data.frame to table image进行演示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个data.frame df
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.
推荐答案
最直接的选项是大概使用 grid.table $ cc从gridExtra包中。假设你的
data.frame
被称为mydf,这样做很简单:
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)
看起来像:
这篇关于R data.frame to table image进行演示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文