diff --git a/content/blog/2020/taking-control-of-plot-scaling/index.Rmd b/content/blog/2020/taking-control-of-plot-scaling/index.Rmd index 66a1433a3..813a080a2 100644 --- a/content/blog/2020/taking-control-of-plot-scaling/index.Rmd +++ b/content/blog/2020/taking-control-of-plot-scaling/index.Rmd @@ -208,4 +208,4 @@ knitr::include_graphics(pngfile) ## Addendum - Preparing graphics for the web presents an additional hurdle. The HTML specification assumes a screen resolution of 96ppi since that was the predominant screen resolution at the time. Modern monitors have a much higher resolution but the assumption is still in effect (though operating systems may mitigate it). This is the reason why plots may look slightly smaller when rendered through Shiny, blogdown, or hugodown. Simply set the resolution to 96ppi and use pixel dimensions for the output to make sure it has the correct scaling. -- Rendering images with RMarkdown requires some care as well since chunk options both take an output dimension in inches as well as a scaling factor for how big the rendered image should appear in the document. [R for Data Science](https://r4ds.had.co.nz/graphics-for-communication.html#figure-sizing) has some additional information on this +- Rendering images with RMarkdown requires some care as well since chunk options both take an output dimension in inches as well as a scaling factor for how big the rendered image should appear in the document. [R for Data Science](https://r4ds.had.co.nz/graphics-for-communication.html#figure-sizing) has some additional information on this.