首页 > 解决方案 > tablegrob 正在返回代码而不是表

问题描述

我对 tablegrob 有疑问:

   require(gridExtra)
   require(grid)
   head(iris,5)

这会产生普通表。现在我想用 tableGrob 把它放在网格上。所以

 p4<- tableGrob(head(iris,5))
    p4

桌格罗布回归

TableGrob (6 x 6) "rowhead-fg": 72 grobs
    z     cells       name                 grob
1   1 (1-1,1-1) rowhead-fg text[GRID.text.3354]
2   2 (2-2,1-1) rowhead-fg text[GRID.text.3355]
3   3 (3-3,1-1) rowhead-fg text[GRID.text.3356]
4   4 (4-4,1-1) rowhead-fg text[GRID.text.3357]
5   5 (5-5,1-1) rowhead-fg text[GRID.tex

任何人有任何想法来解决这个问题?

标签: rggplot2grid

解决方案


推荐阅读