I know how to change the dpi of a plot when knitting a rmarkdown notebook to html. However is there a way to change the dpi of a plot generated in a rmarkdown notebook without having to knit the document, id est the plot is shown as inline output between two code chunks while working on the notebook?
Asked
Active
Viewed 347 times
3
-
Look at the `knitr` docs: https://yihui.name/knitr/options/#plots You can set chunk options for the plotting device and dpi for individual chunks, which I believe should take effect each time you run that chunk – camille Dec 21 '18 at 13:43
-
1Unfortunately the preview does not respect that option. I am having the same problem and posted it on the Rstudio forum here https://community.rstudio.com/t/r-markdown-chunks-dpi-option-ignored-on-run-current-chunk/34038/4. – Herr Jemine Jun 28 '19 at 12:04
-
I'm experiencing the same issue, and I created a bug report here: https://github.com/rstudio/rstudio/issues/11649. Make sure to give it a "thumbs up" so it gets attention. – itpetersen Jul 21 '22 at 17:00