r - 使用 R 绘制图像 conclute table 和文本描述
问题描述
它不包含文本描述部分和表格部分。它来自 Excel。我尝试了一些方法,但没有奏效。这是我最接近成功的一次。
library(data.table)
library(gridExtra)
textdescribe <- 'Imagine the following scenario:
Suppose you have a distance of 7KM from your home to your work unit. The specific mode of travel is shown in the table below.Which mode of travel will you choose?'
table <- data.table(travelmode=c('cost','spend time','congestion degree'),
bus=c('2','44','crowded'),
metro=c('3','16','loose'),
car=c('/','15','/'),
taxi=c('19','15','/'))
grid.arrange(top=textdescribe, tableGrob(table))
但是我还是无法控制文字和表格看起来像Excel图片。R中是否有方法实现?因为我需要稍后批量生成图像。
解决方案
推荐阅读
- flutter - 从单词列表中检索特定字符串以进行颤动
- javascript - Docker 在检查 core-js 依赖关系时构建反应应用程序时挂起
- reactjs - 为什么我不能像这样使用调度程序设置和更改我的整个状态?
- python - python urllib,返回特定url的空页面
- matlab - 皮尔逊相关系数
- excel - 如何从不同的工作表中进行加法和减法并在excel中的另一个工作表上显示结果
- android - Android socket io客户端没有从javascript服务器接收广播消息
- html - 如何在标题中移动图像?
- java - 减少wildfly v10.0.0.Final docker容器的内存使用和CPU使用
- json - jq如何在提取和修改json中的内容时保留父方括号