From 36cbb9d147d45d791c3c12d6eec2a6f5dbd52830 Mon Sep 17 00:00:00 2001 From: Andrew Singleton Date: Wed, 15 Nov 2023 12:39:19 +0100 Subject: [PATCH] Make sure scorecards plot lead time in the correct order --- R/plot_scorecard.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/plot_scorecard.R b/R/plot_scorecard.R index 42d44c7..7d771d6 100644 --- a/R/plot_scorecard.R +++ b/R/plot_scorecard.R @@ -183,7 +183,7 @@ plot_scorecard <- function( gg <- ggplot2::ggplot( sc_data, ggplot2::aes( - x = factor(.data[["lead_time"]]), + x = forcats::fct_inseq(factor(.data[["lead_time"]])), y = forcats::fct_rev(forcats::fct_inorder(.data[["parameter"]])), fill = .data[["class"]], colour = .data[["class"]],