0
votes

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?

1

1 Answers

4
votes

results = 'hide' hides printed output while fig.show = 'hide' hides plots and figures.