Add link to blog post, closes #1358 (#1360)

This commit is contained in:
Mine Cetinkaya-Rundel 2023-03-10 16:52:54 -05:00 committed by GitHub
parent cfd608cf47
commit 2f1b978bea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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).
<!-- TODO: https://www.tidyverse.org/blog/2020/08/taking-control-of-plot-scaling/ -->
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.