相关疑难解决方法(0)

使用R markdown,knitr,pandoc,beamer绘制尺寸和分辨率

默认情况下不适合幻灯片,甚至不通过任何其他方式打印.

这是.Rmd:编辑:似乎你必须在每个块中使用plot().第二个图现在打印.

# Plot should show at high resolution

```{r echo=FALSE, comment = ""}
# load some data
require(plyr)
rbi <- ddply(baseball, .(year), summarise,  
  mean_rbi = mean(rbi, na.rm = TRUE))
```

```{r}
# plot
plot(mean_rbi ~ year, type = "l", data = rbi)
```

# Second attempt
```{r, fig.width = 2, fig.height = 2}
plot(mean_rbi ~ year, type = "l", data = rbi)
```

# Third attempt
```{r, out.width = 2, out.height = 2}
plot(mean_rbi ~ year, type = …
Run Code Online (Sandbox Code Playgroud)

r beamer pandoc knitr r-markdown

58
推荐指数
2
解决办法
8万
查看次数

标签 统计

beamer ×1

knitr ×1

pandoc ×1

r ×1

r-markdown ×1