2017-10-04 130 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