r - 在 R 中调整从标签到表格的距离 grid.arrange
问题描述
我找不到如何在 grid.arrange 中调整标签到表格的距离:
distances_lsit = c(25,50,75,100)
category_lsit = 0:5
damage_table = matrix(NA, nrow=length(distances_lsit), ncol=length(category_lsit))
damage_table[1,] = c(10,25,50,75,100,100)
damage_table[2,] = c(5,10,25,50,75,100)
damage_table[3,] = c(2.5,5,10,25,50,75)
damage_table[4,] = c(0,2.5,5,10,25,50)
rownames(damage_table) = distances_lsit
colnames(damage_table) = category_lsit
table_scale = tableGrob(damage_table)
grid.arrange(table_scale, top = "Label 1", left = "Label 2")
有没有办法把它粘在桌子上?预先感谢您的帮助。
解决方案
推荐阅读
- qt - 在 QML 中使用 Char 视图的 grabToImage
- groovy - 在 groovy 中拦截属性设置器
- php - Mysql 密码问题:驱动发生异常:SQLSTATE[HY000] [2006] MySQL server has gone away
- twitter-bootstrap - Bootstrap 选择在页面刷新时添加剩余空间
- javascript - 过滤器不返回索引值javascript
- python - 我想在python中以字典的形式显示一列Excel
- java - 是否有任何允许“静态容量”的java集合?
- python - 无法在短轴上定位项目
- apache - (Apache) 访问子域时禁止 403
- ios - IOS 11 相机标签未以本地电话语言显示