Tag: pandoc beamer

用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 = […]