有没有办法增加tableGrob
中列名的单元格?元素?
library(grid)
d <- head(iris, 3)
g <- tableGrob(d)
grid.newpage()
grid.draw(g)
默认:
我想要实现的目标(这是在 photoshop 中完成的):
任何帮助深表感谢。
最佳答案
您可以通过更改 padding
来做到这一点。的colhead
内theme
.
例如
thm <- ttheme_default(colhead =
# first unit is the wdith, and second the height
list(padding=unit.c(unit(4, "mm"), unit(10, "mm"))))
tableGrob(d, theme=thm)
要了解您可以更改的内容,您可以查看
ttheme_default()
在终端
关于r - 增加 tableGrob 列标题大小和单元格大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48930161/