Skip to content

Commit

Permalink
update 01-intro
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejohnson51 committed Jul 6, 2023
1 parent d5ee9f5 commit 4a5ca0c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vignettes/01-intro.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,12 @@ sites_wide[[1]][1:5, 1:5]

To make the data 'tidy' simply pivot on the `date` column:

```{r, echo = FALSE}
```{r}
tmax = tidyr::pivot_longer(sites_wide[[1]], -date)
head(tmax)
```

```{r, echo = FALSE}
ggplot(data = tmax, aes(x = date, y = value, color = name, group = name)) +
scale_color_viridis_d() +
geom_line() +
Expand Down

0 comments on commit 4a5ca0c

Please sign in to comment.