File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -207,6 +207,12 @@ make_spc_data <- function(
207207 measure_data
208208 ) {
209209 measure_data | >
210+ # remove duplicate dttms (using `arrange` first in order to keep the higher
211+ # "value" - which should be first anyway... This should only remove
212+ # zeroes from the "value" column, not the time since last event!)
213+ dplyr :: arrange(desc(pick(" value" ))) | >
214+ dplyr :: distinct(pick(" date" ), .keep_all = TRUE ) | >
215+ dplyr :: arrange(pick(" date" )) | >
210216 NHSRplotthedots :: ptd_spc(
211217 rebase = align_rebase_dates(rebase_dates , measure_data ),
212218 value_field = " value" ,
@@ -259,7 +265,7 @@ make_spc_chart <- function(
259265 y = dplyr :: last(spc_data [[" y" ]]),
260266 shape = " circle filled" ,
261267 colour = " grey65" , # #a6a6a6 (matches plotthedots grey)
262- fill = " grey90 " , # #e5e5e5
268+ fill = NA , # so the PTD dot can be seen
263269 size = 5 ,
264270 stroke = 2
265271 )
You can’t perform that action at this time.
0 commit comments