I'm trying to compare obama's first year approval ratings with Trump's first year approval ratings in a line chart.
The trouble here is that I use two different years obama (2009) and Trump (2017). Can't seem to figure out how to solve this...
rating_comparison %>%
ggplot(aes(endDate, rating, group = 1)) +
geom_line(data = filter(rating_comparison,
endDate > "2017-01-28",
type == "Overall.A")) +
geom_line(data = filter(rating_comparison,
president == "Obama" &
endDate > "2009-01-25" &
endDate < "2010-01-24",
type == "Overall.A"))


rating_comparison.+ scale_x_date(date_labels = "%b %d")