Skip to content

Commit

Permalink
Use moderndive pkg for flight data
Browse files Browse the repository at this point in the history
  • Loading branch information
ismayc committed Oct 12, 2024
1 parent a0f5eb8 commit b026ab9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions 02-visualization.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -422,12 +422,6 @@ However, instead of considering hourly wind speeds for all days in 2023 for all

Let's create a time series plot of the hourly wind speeds saved in the `early_january_2023_weather` data frame by using `geom_line()` to create a linegraph\index{R packages!ggplot2!geom\_line()}, instead of using `geom_point()` like we used previously to create scatterplots:

```{r early-january, echo=FALSE}
# Need to save `early_january_data` to {moderndive} for 2023 data
early_january_2023_weather <- weather |>
filter(origin == "EWR" & month == 1 & day <= 15)
```

```{r hourlytemp, fig.cap="Hourly wind speed in Newark for January 1-15, 2023."}
ggplot(data = early_january_2023_weather,
mapping = aes(x = time_hour, y = wind_speed)) +
Expand Down

0 comments on commit b026ab9

Please sign in to comment.