From b2ca825964d31a2dd71dcaa924e21e6b8a9f5570 Mon Sep 17 00:00:00 2001 From: Jason Everett Date: Tue, 23 Jun 2026 13:26:11 +1000 Subject: [PATCH 1/2] Update splnr_plotting_climate.R --- R/splnr_plotting_climate.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/splnr_plotting_climate.R b/R/splnr_plotting_climate.R index ca97fb5..bd9d8a5 100644 --- a/R/splnr_plotting_climate.R +++ b/R/splnr_plotting_climate.R @@ -378,7 +378,7 @@ splnr_plot_climKernelDensity_Fancy <- function(soln, ggplot2::scale_fill_viridis_c(name = legendTitle, option = colorMap) + ggplot2::guides( - colour = ggplot2::guide_colorbar( + fill = ggplot2::guide_colorbar( barheight = ggplot2::unit(10, "lines"), barwidth = ggplot2::unit(3, "lines") ) From 3b6e049682064464bf5603865adf2d85e130afd0 Mon Sep 17 00:00:00 2001 From: Jason Everett Date: Tue, 23 Jun 2026 13:30:32 +1000 Subject: [PATCH 2/2] Update splnr_plotting_climate.R --- R/splnr_plotting_climate.R | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/R/splnr_plotting_climate.R b/R/splnr_plotting_climate.R index bd9d8a5..9b92c66 100644 --- a/R/splnr_plotting_climate.R +++ b/R/splnr_plotting_climate.R @@ -375,10 +375,10 @@ splnr_plot_climKernelDensity_Fancy <- function(soln, scale = 1 ) + # Viridis colour scale for the gradient fill (continuous legend). - ggplot2::scale_fill_viridis_c(name = legendTitle, - option = colorMap) + - ggplot2::guides( - fill = ggplot2::guide_colorbar( + ggplot2::scale_fill_viridis_c( + name = legendTitle, + option = colorMap, + guide = ggplot2::guide_colorbar( barheight = ggplot2::unit(10, "lines"), barwidth = ggplot2::unit(3, "lines") )