Skip to content

Commit

Permalink
fixing historic colors for show_matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
fawda123 committed Jul 1, 2022
1 parent d67c016 commit 8ab6fde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/show_matrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ show_matrix <- function(epcdata, txtsz = 3, trgs = NULL, yrrng = NULL, bay_segme
tidyr::gather('bay_segment', 'outcome', -yr) %>%
dplyr::mutate(
outcome = dplyr::case_when(
outcome == 'r' ~ '#CC3231',
outcome == 'g' ~ '#2DC938',
outcome == 'y' ~ '#E9C318'
outcome == 'g' ~ 'green',
outcome == 'r' ~ 'red',
outcome == 'y' ~ 'yellow'
),
bay_segment = factor(bay_segment, levels = c('OTB', 'HB', 'MTB', 'LTB'))
)
Expand Down

0 comments on commit 8ab6fde

Please sign in to comment.