Fix broken alt text, adresses #1546 (#1573)

This commit is contained in:
Mine Cetinkaya-Rundel 2023-10-25 16:07:34 -04:00 committed by GitHub
parent 8c596307f3
commit 03808b44bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 8 deletions

View File

@ -258,14 +258,12 @@ This makes the plot easier to read because the colors of the line at the far rig
#| There is one line for each category of marital status: no answer, #| There is one line for each category of marital status: no answer,
#| never married, separated, divorced, widowed, and married. It is #| never married, separated, divorced, widowed, and married. It is
#| a little hard to read the plot because the order of the legend is #| a little hard to read the plot because the order of the legend is
#| unrelated to the lines on the plot. #| unrelated to the lines on the plot. Rearranging the legend makes
#| #| the plot easier to read because the legend colors now match the
#| Rearranging the legend makes the plot easier to read because the #| order of the lines on the far right of the plot. You can see some
#| legend colors now match the order of the lines on the far right #| unsurprising patterns: the proportion never married decreases with
#| of the plot. You can see some unsurprising patterns: the proportion #| age, married forms an upside down U shape, and widowed starts off
#| never married decreases with age, married forms an upside down U #| low but increases steeply after age 60.
#| shape, and widowed starts off low but increases steeply after age
#| 60.
by_age <- gss_cat |> by_age <- gss_cat |>
filter(!is.na(age)) |> filter(!is.na(age)) |>
count(age, marital) |> count(age, marital) |>