From 0e06163523f0f32339194b18eb1f649beddf3ea8 Mon Sep 17 00:00:00 2001 From: Tini Garske Date: Fri, 5 Jul 2024 13:59:44 +0100 Subject: [PATCH] debug plot_pop_size() --- R/plotting.R | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/R/plotting.R b/R/plotting.R index a362e74..d1b1686 100644 --- a/R/plotting.R +++ b/R/plotting.R @@ -78,8 +78,7 @@ plot_pop_size <- function(pop) { ggplot2::geom_tile() + ggplot2::facet_wrap(~region) + ggplot2::scale_fill_gradient(low = "white", - high = pal[5], - limits = c(0,1)) + + high = pal[5]) + ggplot2::labs(x = "year", y = "age", fill = "population size") + ggplot2::theme_minimal()