@@ -107,6 +107,8 @@ df_measures$region <- factor(
107
107
108
108
df_measures <- df_measures %>%
109
109
mutate(sex = factor(sex, levels = c("female", "male"), labels = c("Female", "Male")))
110
+
111
+ df_measures$age_band[is.na(df_measures$age_band)] <- "Missing"
110
112
```
111
113
112
114
# Background
@@ -150,7 +152,7 @@ plot_measures(
150
152
facet_var = NULL,
151
153
title = "Number of consultations for each clinical service per month",
152
154
y_label = "Number of codes for consultations",
153
- )
155
+ )
154
156
```
155
157
156
158
### Breakdown by age
@@ -172,7 +174,8 @@ plot_measures(
172
174
facet_var = measure,
173
175
title = "Number of consultations for each clinical service by age band per month",
174
176
y_label = "Number of codes for consultations",
175
- )
177
+ ) + scale_color_manual(values = c("#FFCCCC", "#fa7070", "#fc0e0e", "#9c0000", "#4c0000", "grey"))
178
+
176
179
```
177
180
178
181
### Breakdown by sex
@@ -216,7 +219,7 @@ plot_measures(
216
219
facet_var = measure,
217
220
title = "Number of consultations for each clinical service by IMD per month",
218
221
y_label = "Number of codes for consultations",
219
- )
222
+ ) + scale_color_manual(values = c("#001F4D", "#0056B3", "#007BFF", "#66B3E2", "#A4D8E1", "grey"))
220
223
```
221
224
222
225
### Breakdown by region
@@ -308,7 +311,8 @@ plot_measures(
308
311
facet_var = measure,
309
312
title = "Number of consultations for each clinical condition by age band per month",
310
313
y_label = "Number of codes for consultations",
311
- )
314
+ ) + scale_color_manual(values = c("#FFCCCC", "#fa7070", "#fc0e0e", "#9c0000", "#4c0000", "grey"))
315
+
312
316
```
313
317
314
318
### Breakdown by sex
@@ -352,7 +356,7 @@ plot_measures(
352
356
facet_var = measure,
353
357
title = "Number of consultations for each clinical condition by IMD per month",
354
358
y_label = "Number of codes for consultations",
355
- )
359
+ ) + scale_color_manual(values = c("#001F4D", "#0056B3", "#007BFF", "#66B3E2", "#A4D8E1", "grey"))
356
360
```
357
361
358
362
### Breakdown by region
0 commit comments