From 2f1b978beaecb721ff9295c35011bc8ab83b6e28 Mon Sep 17 00:00:00 2001 From: Mine Cetinkaya-Rundel Date: Fri, 10 Mar 2023 16:52:54 -0500 Subject: [PATCH] Add link to blog post, closes #1358 (#1360) --- quarto.qmd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/quarto.qmd b/quarto.qmd index d2bf9fc..ff2ded4 100644 --- a/quarto.qmd +++ b/quarto.qmd @@ -429,8 +429,6 @@ The biggest challenge of graphics in Quarto is getting your figures the right si There are five main options that control figure sizing: `fig-width`, `fig-height`, `fig-asp`, `out-width` and `out-height`. Image sizing is challenging because there are two sizes (the size of the figure created by R and the size at which it is inserted in the output document), and multiple ways of specifying the size (i.e. height, width, and aspect ratio: pick two of three). - - We recommend three of the five options: - Plots tend to be more aesthetically pleasing if they have consistent width. @@ -482,6 +480,9 @@ plot If you want to make sure the font size is consistent across all your figures, whenever you set `out-width`, you'll also need to adjust `fig-width` to maintain the same ratio with your default `out-width`. For example, if your default `fig-width` is 6 and `out-width` is 0.7, when you set `out-width: "50%"` you'll need to set `fig-width` to 4.3 (6 \* 0.5 / 0.7). +Figure sizing and scaling is an art and science and getting things right can require an iterative trial-and-error approach. +You can learn more about figure sizing in the [taking control of plot scaling blog post](https://www.tidyverse.org/blog/2020/08/taking-control-of-plot-scaling/). + ### Other important options When mingling code and text, like in this book, you can set `fig-show: hold` so that plots are shown after the code.