使用knitr在Rstudio中进行演示我有一张只有一张图片的幻灯片,我想填写整个屏幕/幻灯片.我怎么做?
以下.Rpres文档的第二张幻灯片设置为2000x2000像素,但它仍然只填充屏幕的一小部分:
first slide
======
Slide with plot which I want to fill the whole screen
========================================================
title: false
```{r, echo=FALSE,out.height="2000px",out.width="2000px"}
plot(cars)
```
Run Code Online (Sandbox Code Playgroud)
这就是我的意思,当我写到图片没有"填满整个屏幕"时,红线被绘制在屏幕的未被图表填充的部分.

2016年11月更新
在Rstudio版本1.0.44中创建新演示文稿时选择"HTML Slidy",可以更轻松地控制大小.以下是我想要的全高清分辨率,非常简单:
---
title: "Untitled"
output: slidy_presentation
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
```
##
```{r pressure, fig.height=10, fig.width=19}
plot(pressure)
```
Run Code Online (Sandbox Code Playgroud) 我试图改变代码块的字体大小(更准确地说,我想使用较小的字体).采用以下基本示例:
---
title: "Example"
output:
ioslides_presentation:
toc: yes
widescreen: yes
---
## Code
```{r, eval=FALSE}
print(mtcars)
```
Run Code Online (Sandbox Code Playgroud)
有人有想法吗?是否有像code-font-size这样的YAML选项?