powered by
Covers midterm elections.
midterms_house
A data frame with 29 observations on the following 5 variables.
Year.
The president in office.
President's party: Democrat or Republican.
Unemployment rate.
Change in House seats for the President's party.
An older version of this data is at unemploy_pres.
unemploy_pres
library(ggplot2) ggplot(midterms_house, aes(x = unemp, y = house_change)) + geom_point()
Run the code above in your browser using DataLab