3

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?

3
  • Look at the knitr docs: 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, 2018 at 13:43
  • 1
    Unfortunately the preview does not respect that option. I am having the same problem and posted it on the Rstudio forum here community.rstudio.com/t/…. Jun 28, 2019 at 12:04
  • I'm experiencing the same issue, and I created a bug report here: github.com/rstudio/rstudio/issues/11649. Make sure to give it a "thumbs up" so it gets attention.
    – itpetersen
    Jul 21 at 17:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.