midterms_house | R Documentation |
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
.
Wikipedia.
library(ggplot2)
ggplot(midterms_house, aes(x = unemp, y = house_change)) +
geom_point()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.