Skip to content

Commit 36cbb9d

Browse files
committed
Make sure scorecards plot lead time in the correct order
1 parent 033d015 commit 36cbb9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/plot_scorecard.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ plot_scorecard <- function(
183183
gg <- ggplot2::ggplot(
184184
sc_data,
185185
ggplot2::aes(
186-
x = factor(.data[["lead_time"]]),
186+
x = forcats::fct_inseq(factor(.data[["lead_time"]])),
187187
y = forcats::fct_rev(forcats::fct_inorder(.data[["parameter"]])),
188188
fill = .data[["class"]],
189189
colour = .data[["class"]],

0 commit comments

Comments
 (0)