Description Usage Format Source See Also Examples
Named character vectors that provide lookup tables for abbreviations and possible colors for political parties in the OR House of Representatives.
1 |
Named character vectors, where the names are historical
parties present in house_reps
and house_reps_regular
Values contain abbreviated names for political parties
Values contain Hex codes for suggested colors for political parties
Abbreviations match those used in https://www.oregonlegislature.gov/chief-clerk/Pages/representatives.aspx
house_reps
, house_reps_regular
1 2 3 4 5 | if (require(ggplot2)) {
ggplot(house_reps_regular, aes(session_year)) +
geom_bar(aes(fill = party), width = 1) +
scale_fill_manual(values = party_colors)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.