【发布时间】:2014-09-30 04:07:20
【问题描述】:
下面的代码用于使用 R 中的基本绘图系统生成直方图,并通过 Rmarkdown 将其转换为 pdf (Latex)。我设置了 message=FALSE、warning=FALSE、error=FALSE 等,但仍然从系统中获得输出。我怎样才能显示情节?
---
title: "Test"
author: "Me"
date: "Tuesday, September 30, 2014"
output: pdf_document
---
```{r,message=FALSE,warning=FALSE,cache.comments=FALSE,error=FALSE,prompt=FALSE}
par(mfrow=c(2,2))
replicate(4,hist(replicate(1000,mean(rnorm(10000,1,10))),col="slateblue4",
main="Distribution of the Mean",col.main="steelblue4",
xlab="Mean",ylab="Count"))
```
【问题讨论】:
标签: r pdf plot r-markdown