Description Usage Arguments See Also Examples
An N-color discrete palette for political parties.
1 |
palette |
the palette name, a character string. |
plot |
logical, if |
hex |
logical, if |
Other color party: scale_color_party
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | library(scales)
# Argentine
party_pal("ARG", plot=TRUE, hex=FALSE)
show_col(party_pal("ARG")(12))
# Brazil
party_pal("BRA", plot=TRUE, hex=FALSE)
show_col(party_pal("BRA")(20))
# Canada
party_pal("CAN", plot=TRUE, hex=FALSE)
show_col(party_pal("CAN")(10))
# US
party_pal("USA", plot=TRUE, hex=FALSE)
show_col(party_pal("USA")(6))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.