party_pal: Political Parties Color Palette (Discrete) and Scales

Description Usage Arguments See Also Examples

Description

An N-color discrete palette for political parties.

Usage

1
party_pal(palette = "BRA", plot = FALSE, hex = FALSE)

Arguments

palette

the palette name, a character string.

plot

logical, if TRUE a plot is returned.

hex

logical, if FALSE, the associated color name (label) is returned.

See Also

Other color party: scale_color_party

Examples

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

danielmarcelino/SciencesPo documentation built on Oct. 20, 2019, 1:15 a.m.