2017-10-04 127 views
0

我想在剧情窗口中显示一张桌子,但最终会在桌子周围留下太多空白。删除桌面周围的空白格与网格编排

我的代码如下:

` mytable = data.frame(Strategy = c("Long Short","Long Short Directional 
Bias","Market Neutral"), 
        Assets_AUM = c("R 1 000 000 00","R 2 000 000 000", "R 500 000 000")) 

mytheme <- ttheme_default(core = list(fg_params = list(hjust=0, x=0.1, 
                 fontsize=8)), 
          colhead = list(fg_params = list(fontsize=9, 
                  fontface="bold"))) 
plot1 = tableGrob(mytable,rows=NULL,theme = mytheme) 
grid.arrange(plot1) ` 

结果我得到的是:

enter image description here

任何帮助将非常感激。

+4

的可能重复[删除空格和grid.arrange中的表之间的空格](https://stackoverflow.com/questions/32141400/remove-white-space-between-plots-and-table-in-grid-arrange) – PoGibas

回答

0

你可以尝试绘制表格在较小的设备/视

enter image description here

或设置宽度和高度占用的可用空间

enter image description here

+0

什么是c ö你用来实现这个? – Pozozo