Fix typo + clarify, closes #1422

This commit is contained in:
mine-cetinkaya-rundel 2023-04-12 20:57:01 -04:00
parent 169d14d093
commit 5caf0a47df
1 changed files with 4 additions and 4 deletions

View File

@ -108,7 +108,7 @@ Table @tbl-date-formats lists all the options.
| | `%y` | 2 digit year | 21 | | | `%y` | 2 digit year | 21 |
| Month | `%m` | Number | 2 | | Month | `%m` | Number | 2 |
| | `%b` | Abbreviated name | Feb | | | `%b` | Abbreviated name | Feb |
| | `%B` | Full name | Februrary | | | `%B` | Full name | February |
| Day | `%d` | Two digits | 02 | | Day | `%d` | Two digits | 02 |
| | `%e` | One or two digits | 2 | | | `%e` | One or two digits | 2 |
| Time | `%H` | 24-hour hour | 13 | | Time | `%H` | 24-hour hour | 13 |
@ -232,7 +232,7 @@ With this data, we can visualize the distribution of departure times across the
#| is binned by day so you see a time series of flights by day. The #| is binned by day so you see a time series of flights by day. The
#| pattern is dominated by a weekly pattern; there are fewer flights #| pattern is dominated by a weekly pattern; there are fewer flights
#| on weekends. The are few days that stand out as having a surprisingly #| on weekends. The are few days that stand out as having a surprisingly
#| few flights in early Februrary, early July, late November, and late #| few flights in early February, early July, late November, and late
#| December. #| December.
flights_dt |> flights_dt |>
ggplot(aes(x = dep_time)) + ggplot(aes(x = dep_time)) +
@ -345,8 +345,8 @@ flights_dt |>
geom_bar() geom_bar()
``` ```
There's an interesting pattern if we look at the average departure delay by minute within the hour. We can also look at the average departure delay by minute within the hour.
It looks like flights leaving in minutes 20-30 and 50-60 have much lower delays than the rest of the hour! There's an interesting pattern: flights leaving in minutes 20-30 and 50-60 have much lower delays than the rest of the hour!
```{r} ```{r}
#| fig-alt: > #| fig-alt: >