diff --git a/annotations.qmd b/annotations.qmd index fd36a4f8..8820c034 100644 --- a/annotations.qmd +++ b/annotations.qmd @@ -268,7 +268,7 @@ To do this, we use `geom_rect()` to introduce shading, `geom_vline()` to introdu ```{r} #| label: unemp-pres -presidential <- subset(presidential, start > economics$date[1]) +presidential <- subset(presidential, start > economics$date[1] & start < economics$date[length(economics$date)]) ggplot(economics) + geom_rect(