From cd2e4db0fdc1403fca9af1b1b909ac6c8f7ed6f5 Mon Sep 17 00:00:00 2001 From: Eva Rifa Date: Tue, 26 Sep 2023 10:11:51 +0200 Subject: [PATCH] Add white color background in the plots --- R/PlotForecastPDF.R | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/R/PlotForecastPDF.R b/R/PlotForecastPDF.R index 71432944..08688095 100644 --- a/R/PlotForecastPDF.R +++ b/R/PlotForecastPDF.R @@ -441,7 +441,9 @@ PlotForecastPDF <- function(fcst, tercile.limits, extreme.limits = NULL, obs = N panel.border = element_rect(fill = NA, color = "black"), strip.background = element_rect(colour = "black", fill = "gray80"), panel.spacing = unit(0.2, "in"), - panel.grid.major.x = element_line(color = "grey93")) + + panel.grid.major.x = element_line(color = "grey93"), + panel.background = element_rect(fill = "white"), + plot.background = element_rect(fill = "white", color = NA)) + guides(fill = guide_legend(order = 1), color = guide_legend(order = 2), shape = guide_legend(order = 3, label = F), -- GitLab