Reputation: 37
I am trying to suppress a lattice density plot, while showing the code chunk in R Markdown. I am using the following code:
```{r, results = 'hide'}
densityplot(imputed_data)`
```
For some reason, when I knit the R markdown document to PDF or HTML, the plot appears below the code chunk. Are there other knitr display options of which I'm unaware that will suppress this plot?
Upvotes: 0
Views: 209
Reputation: 121
results = 'hide'
hides printed output while fig.show = 'hide'
hides plots and figures.
Upvotes: 4