-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparties.r
47 lines (42 loc) · 1.37 KB
/
parties.r
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# party colors
colors = c(
"VR" = "#AAAAAA", # Vasenryhmä -- light grey
"VAS" = "#E41A1C", # Vasemmistoliitto -- red
"VIHR" = "#B3DE69", # Vihreä liitto -- light green
"SD" = "#F781BF", # Sosialidemokraattinen Puolue -- pink
"KESK" = "#4DAF4A", # Suomen Keskusta -- green
"R" = "#FFFF33", # Ruotsalainen kansanpuolue (RKP) -- yellow
"PS" = "#053061", # Perussuomalaiset -- dark blue
"KD" = "#FF7F00", # Kristillisdemokraatit -- orange
"KOK" = "#01665E", # Kansallinen Kokoomus -- dark green/teal
"M11" = "#80B1D3" # Muutos 2011 -- light blue
)
groups = c(
"VR" = "Vasenryhmä",
"VAS" = "Vasemmistoliitto",
"VIHR" = "Vihreä liitto",
"SD" = "Sosialidemokraattinen Puolue",
"KESK" = "Keskusta",
"R" = "Ruotsalainen kansanpuolue",
"PS" = "Perussuomalaiset",
"KD" = "Kristillisdemokraatit",
"KOK" = "Kansallinen Kokoomus",
"M11" = "Muutos 2011"#,
#"KDL" = "Kansan Demokraattinen Liitto",
#"MP" = "Maaseudun Puolue",
)
# ParlGov Left/Right scores
scores = c(
"VR" = 2.2,
"VAS" = 2.2,
"VIHR" = 3.6,
"SD" = 3.6,
"KESK" = 5.8,
"R" = 6.4,
"PS" = 6.6,
"KD" = 7.2,
"KOK" = 7.2,
"M11" = Inf # missing
)
stopifnot(names(colors) == names(groups))
stopifnot(names(colors) == names(scores))