diff --git a/R/splnr_plotting_climate.R b/R/splnr_plotting_climate.R index ca97fb5..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( - colour = 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") )