Add alt text

This commit is contained in:
mine-cetinkaya-rundel 2023-06-06 22:28:40 +10:00
parent 09ccc0c48b
commit dd793105dd
1 changed files with 7 additions and 0 deletions

View File

@ -520,6 +520,13 @@ Here's a quick example from the diamonds dataset:
#| fig-width: 4
#| fig-asp: 1
#| layout-ncol: 2
#| fig-alt: |
#| On the left, histogram of carats of diamonds, ranging from 0 to 5 carats.
#| The distribution is unimodal and right-skewed. On the right, scatter
#| plot of price vs. carat of diamonds, showing a positive relationship
#| that fans out as both price and carat increases. The scatter plot
#| shows very few diamonds bigger than 3 carats compared to diamonds between
#| 0 to 3 carats.
# Left
hist(diamonds$carat)