8
8
# ' @rdname nhs_colours
9
9
# ' @export
10
10
# '
11
- nhs_blue <- " #005EB8"
11
+ nhs_blue <- " #005EB8"
12
12
13
13
# ' @rdname nhs_colours
14
14
# ' @export
15
- nhs_white <- " #FFFFFF"
15
+ nhs_white <- " #FFFFFF"
16
16
17
17
# ' @rdname nhs_colours
18
18
# ' @export
19
- nhs_dark_blue <- " #003087"
19
+ nhs_dark_blue <- " #003087"
20
20
21
21
# ' @rdname nhs_colours
22
22
# ' @export
23
- nhs_bright_blue <- " #0072CE"
23
+ nhs_bright_blue <- " #0072CE"
24
24
25
25
# ' @rdname nhs_colours
26
26
# ' @export
27
- nhs_light_blue <- " #41B6E6"
27
+ nhs_light_blue <- " #41B6E6"
28
28
29
29
# ' @rdname nhs_colours
30
30
# ' @export
31
- nhs_aqua_blue <- " #00A9CE"
31
+ nhs_aqua_blue <- " #00A9CE"
32
32
33
33
# ' @rdname nhs_colours
34
34
# ' @export
35
- nhs_black <- " #231f20"
35
+ nhs_black <- " #231f20"
36
36
37
37
# ' @rdname nhs_colours
38
38
# ' @export
39
- nhs_dark_grey <- " #425563"
39
+ nhs_dark_grey <- " #425563"
40
40
41
41
# ' @rdname nhs_colours
42
42
# ' @export
43
- nhs_mid_grey <- " #768692"
43
+ nhs_mid_grey <- " #768692"
44
44
45
45
# ' @rdname nhs_colours
46
46
# ' @export
47
- nhs_pale_grey <- " #E8EDEE"
47
+ nhs_pale_grey <- " #E8EDEE"
48
48
49
49
# ' @rdname nhs_colours
50
50
# ' @export
51
- nhs_dark_green <- " #006747"
51
+ nhs_dark_green <- " #006747"
52
52
53
53
# ' @rdname nhs_colours
54
54
# ' @export
55
- nhs_green <- " #009639"
55
+ nhs_green <- " #009639"
56
56
57
57
# ' @rdname nhs_colours
58
58
# ' @export
59
- nhs_light_green <- " #78BE20"
59
+ nhs_light_green <- " #78BE20"
60
60
61
61
# ' @rdname nhs_colours
62
62
# ' @export
63
- nhs_aqua_green <- " #00A499"
63
+ nhs_aqua_green <- " #00A499"
64
64
65
65
# ' @rdname nhs_colours
66
66
# ' @export
67
- nhs_purple <- " #330072"
67
+ nhs_purple <- " #330072"
68
68
69
69
# ' @rdname nhs_colours
70
70
# ' @export
71
- nhs_dark_pink <- " #7C2855"
71
+ nhs_dark_pink <- " #7C2855"
72
72
73
73
# ' @rdname nhs_colours
74
74
# ' @export
75
- nhs_pink <- " #AE2573"
75
+ nhs_pink <- " #AE2573"
76
76
77
77
# ' @rdname nhs_colours
78
78
# ' @export
79
- nhs_dark_red <- " #8A1538 "
79
+ nhs_emergency_red <- " #DA291C "
80
80
81
81
# ' @rdname nhs_colours
82
82
# ' @export
83
- nhs_orange <- " #ED8B00 "
83
+ nhs_dark_red <- " #8A1538 "
84
84
85
85
# ' @rdname nhs_colours
86
86
# ' @export
87
- nhs_warm_yellow <- " #FFB81C "
87
+ nhs_orange <- " #ED8B00 "
88
88
89
89
# ' @rdname nhs_colours
90
90
# ' @export
91
- nhs_yellow <- " #FAE100"
91
+ nhs_warm_yellow <- " #FFB81C"
92
+
93
+ # ' @rdname nhs_colours
94
+ # ' @export
95
+ nhs_yellow <- " #FAE100"
92
96
93
97
94
98
# '
@@ -108,26 +112,71 @@ nhs_palettes <- list(
108
112
nhs_highlights = c(
109
113
" #330072" , " #7C2855" , " #AE2573" , " #8A1538" , " #ED8B00" , " #FFB81C" , " #FAE100"
110
114
),
111
- nhs_dark_blues = c(" #003087" , " #33599F" , " #6682B7" , " #99ACCF" , " #CCD5E7" ),
112
- nhs_blues = c(" #005EB8" , " #337EC6" , " #669ED4" , " #99BEE2" , " #CCDEF0" ),
113
- nhs_bright_blues = c(" #0072CE" , " #338ED7" , " #66AAE1" , " #99C6EB" , " #CCE2F5" ),
114
- nhs_light_blues = c(" #41B6E6" , " #67C4EB" , " #8DD3F0" , " #B3E1F5" , " #D9F0FA" ),
115
- nhs_aqua_blues = c(" #00A9CE" , " #33BAD7" , " #66CBE1" , " #99DCEB" , " #CCEDF5" ),
116
- nhs_blacks = c(" #231f20" , " #4F4B4C" , " #7B7879" , " #A7A5A5" , " #D3D2D2" ),
117
- nhs_dark_greys = c(" #425563" , " #677782" , " #8D99A1" , " #B3BBC0" , " #D9DDDF" ),
118
- nhs_mid_greys = c(" #768692" , " #919EA7" , " #ACB6BD" , " #C8CED3" , " #E3E6E9" ),
119
- nhs_pale_greys = c(" #E8EDEE" , " #ECF0F1" , " #F1F4F4" , " #F5F7F8" , " #FAFBFB" ),
120
- nhs_dark_greens = c(" #006747" , " #33856B" , " #66A390" , " #99C2B5" , " #CCE0DA" ),
121
- nhs_greens = c(" #009639" , " #33AB60" , " #66C088" , " #99D5AF" , " #CCEAD7" ),
122
- nhs_light_greens = c(" #78BE20" , " #93CB4C" , " #AED879" , " #C9E5A5" , " #E4F2D2" ),
123
- nhs_aqua_greens = c(" #00A499" , " #33B6AD" , " #66C8C1" , " #99DAD6" , " #CCECEA" ),
124
- nhs_purples = c(" #330072" , " #5B338E" , " #8466AA" , " #AD99C6" , " #D6CCE2" ),
125
- nhs_dark_pinks = c(" #7C2855" , " #965377" , " #B07E99" , " #CAA9BB" , " #E4D4DD" ),
126
- nhs_pinks = c(" #AE2573" , " #BE508F" , " #CE7CAB" , " #DEA7C7" , " #EED3E3" ),
127
- nhs_dark_reds = c(" #8A1538" , " #A1435F" , " #B87287" , " #D0A1AF" , " #E7D0D7" ),
128
- nhs_oranges = c(" #ED8B00" , " #F0A233" , " #F4B966" , " #F7D099" , " #FBE7CC" ),
129
- nhs_warm_yellows = c(" #FFB81C" , " #FFC649" , " #FFD476" , " #FFE2A4" , " #FFF0D1" ),
130
- nhs_yellows = c(" #FAE100" , " #FBE733" , " #FCED66" , " #FDF399" , " #FEF9CC" )
115
+ nhs_dark_blues = rev(c(" #003087" , " #33599F" , " #6682B7" , " #99ACCF" , " #CCD5E7" )),
116
+ nhs_blues = rev(c(" #005EB8" , " #337EC6" , " #669ED4" , " #99BEE2" , " #CCDEF0" )),
117
+ nhs_bright_blues = rev(c(" #0072CE" , " #338ED7" , " #66AAE1" , " #99C6EB" , " #CCE2F5" )),
118
+ nhs_light_blues = rev(c(" #41B6E6" , " #67C4EB" , " #8DD3F0" , " #B3E1F5" , " #D9F0FA" )),
119
+ nhs_aqua_blues = rev(c(" #00A9CE" , " #33BAD7" , " #66CBE1" , " #99DCEB" , " #CCEDF5" )),
120
+ nhs_blacks = rev(c(" #231f20" , " #4F4B4C" , " #7B7879" , " #A7A5A5" , " #D3D2D2" )),
121
+ nhs_dark_greys = rev(c(" #425563" , " #677782" , " #8D99A1" , " #B3BBC0" , " #D9DDDF" )),
122
+ nhs_mid_greys = rev(c(" #768692" , " #919EA7" , " #ACB6BD" , " #C8CED3" , " #E3E6E9" )),
123
+ nhs_pale_greys = rev(c(" #E8EDEE" , " #ECF0F1" , " #F1F4F4" , " #F5F7F8" , " #FAFBFB" )),
124
+ nhs_dark_greens = rev(c(" #006747" , " #33856B" , " #66A390" , " #99C2B5" , " #CCE0DA" )),
125
+ nhs_greens = rev(c(" #009639" , " #33AB60" , " #66C088" , " #99D5AF" , " #CCEAD7" )),
126
+ nhs_light_greens = rev(c(" #78BE20" , " #93CB4C" , " #AED879" , " #C9E5A5" , " #E4F2D2" )),
127
+ nhs_aqua_greens = rev(c(" #00A499" , " #33B6AD" , " #66C8C1" , " #99DAD6" , " #CCECEA" )),
128
+ nhs_purples = rev(c(" #330072" , " #5B338E" , " #8466AA" , " #AD99C6" , " #D6CCE2" )),
129
+ nhs_dark_pinks = rev(c(" #7C2855" , " #965377" , " #B07E99" , " #CAA9BB" , " #E4D4DD" )),
130
+ nhs_pinks = rev(c(" #AE2573" , " #BE508F" , " #CE7CAB" , " #DEA7C7" , " #EED3E3" )),
131
+ nhs_dark_reds = rev(c(" #8A1538" , " #A1435F" , " #B87287" , " #D0A1AF" , " #E7D0D7" )),
132
+ nhs_reds = rev(c(" #DA291C" , " #E15349" , " #E87E76" , " #F0A9A4" , " #F7D4D1" )),
133
+ nhs_oranges = rev(c(" #ED8B00" , " #F0A233" , " #F4B966" , " #F7D099" , " #FBE7CC" )),
134
+ nhs_warm_yellows = rev(c(" #FFB81C" , " #FFC649" , " #FFD476" , " #FFE2A4" , " #FFF0D1" )),
135
+ nhs_yellows = rev(c(" #FAE100" , " #FBE733" , " #FCED66" , " #FDF399" , " #FEF9CC" ))
136
+ )
137
+
138
+
139
+ # '
140
+ # ' @examples
141
+ # ' nhs_brewer_palettes
142
+ # '
143
+ # ' @rdname nhs_palette
144
+ # ' @export
145
+ # '
146
+
147
+ nhs_brewer_palettes <- list (
148
+ blues = c(nhs_light_blue , nhs_blue , nhs_bright_blue ),
149
+ bugn = c(nhs_light_blue , nhs_aqua_green , nhs_green ),
150
+ bupu = c(nhs_dark_blue , nhs_dark_pink , nhs_purple ),
151
+ gnbu = c(nhs_aqua_green , nhs_aqua_blue , nhs_bright_blue ),
152
+ greens = c(nhs_light_green , nhs_green , nhs_dark_green ),
153
+ greys = c(nhs_pale_grey , nhs_mid_grey , nhs_dark_grey ),
154
+ pubu = c(nhs_purple , nhs_dark_pink , nhs_dark_blue ),
155
+ pubugn = c(nhs_purple , nhs_blue , nhs_green ),
156
+ purd = c(nhs_purple , nhs_dark_pink , nhs_dark_red ),
157
+ rdpu = c(nhs_dark_red , nhs_dark_pink , nhs_purple ),
158
+ reds = c(nhs_emergency_red , nhs_pink , nhs_dark_red ),
159
+ ylgn = c(nhs_yellow , nhs_aqua_green , nhs_dark_green ),
160
+ ylgnbu = c(nhs_yellow , nhs_aqua_blue , nhs_dark_blue ),
161
+ ylorrd = c(nhs_yellow , nhs_orange , nhs_dark_red ),
162
+ piylgn = c(nhs_pink , nhs_yellow , nhs_green ),
163
+ prgn = c(nhs_purple , nhs_pink , nhs_dark_green ),
164
+ puor = c(nhs_purple , nhs_emergency_red , nhs_orange ),
165
+ rdbu = c(nhs_dark_red , nhs_purple , nhs_dark_blue ),
166
+ rdgy = c(nhs_dark_red , nhs_emergency_red , nhs_mid_grey ),
167
+ rdylbu = c(nhs_emergency_red , nhs_yellow , nhs_bright_blue ),
168
+ rdylgn = c(nhs_emergency_red , nhs_yellow , nhs_green ),
169
+ pastel1 = c(
170
+ nhs_palettes $ nhs_light_blues [3 ], nhs_palettes $ nhs_bright_blues [3 ],
171
+ nhs_palettes $ nhs_greens [3 ], nhs_palettes $ nhs_light_greens [3 ],
172
+ nhs_palettes $ nhs_pinks [3 ], nhs_palettes $ nhs_purples [3 ],
173
+ nhs_palettes $ nhs_reds [3 ], nhs_palettes $ nhs_oranges [3 ]
174
+ ),
175
+ dark = c(
176
+ nhs_palettes $ nhs_dark_blues [4 ], nhs_palettes $ nhs_dark_greens [4 ],
177
+ nhs_palettes $ nhs_dark_reds [4 ], nhs_palettes $ nhs_purples [4 ],
178
+ nhs_palettes $ nhs_dark_greys [4 ]
179
+ )
131
180
)
132
181
133
182
0 commit comments