在RStudio Presentation中居中,扩大xtable

时间:2014-09-03 04:44:49

标签: r shiny rstudio

我在RStudio中打开了一个Presentation文件,我在下面的代码块中使用了stable包:

```{r, results="asis",echo=FALSE}
library(xtable)
x <- matrix(c(28,11,50,3),nrow=2)
colnames(x) <- c("No Pet","Pet")
rownames(x) <- c("Alive","Dead")
print(xtable(x),type="html")
```

它产生以下幻灯片:

enter image description here

我想知道是否有一种方法(使用RStudio演示文稿---它有光泽吗?)使表格居中并使字体更大。

另外,还有什么方法可以摆脱小数点?

最后,使用RStudio Presentation可能无法做到这一点,是否可以使用xtable生成与此类似的图像?

enter image description here

感谢。

0 个答案:

没有答案