party_colors: Political party info

Description Usage Format Source See Also Examples

Description

Named character vectors that provide lookup tables for abbreviations and possible colors for political parties in the OR House of Representatives.

Usage

1

Format

Named character vectors, where the names are historical parties present in house_reps and house_reps_regular

party_abbr

Values contain abbreviated names for political parties

party_colors

Values contain Hex codes for suggested colors for political parties

Source

Abbreviations match those used in https://www.oregonlegislature.gov/chief-clerk/Pages/representatives.aspx

See Also

house_reps, house_reps_regular

Examples

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)
}

or-house-vis/history documentation built on May 15, 2019, 1:11 p.m.