diff --git a/3_visualize.R b/3_visualize.R index 15bc6da568eca0bedf6db49849ae904b141bafbd..c8c14b1d9c7af23d7726db1ee62be5a9916d868f 100644 --- a/3_visualize.R +++ b/3_visualize.R @@ -118,7 +118,7 @@ p3_targets <- list( # population density raster plot tar_target( p3_pop_density_plot, - plot_raster(in_raster = p2_pop_density_filepath, conus_sf = p2_conus_sf_proj, viz_config_df = p0_viz_config_df, + plot_raster(in_raster = p2_pop_density_processed, conus_sf = p2_conus_sf_proj, viz_config_df = p0_viz_config_df, conus_inner = p2_conus_inner, viz_config_pal = p0_viz_config_pal$living_conditions, width = p0_viz_config_df$width_desktop, height = p0_viz_config_df$height_desktop, font_size = p0_viz_config_df$font_size_desktop, barwidth = 20, barheight = 1, @@ -127,7 +127,7 @@ tar_target( # impervious surfaces raster plot tar_target( p3_imp_surf_plot, - plot_imp_surf_raster(in_raster = p2_imp_surfaces_filepath, conus_sf = p2_conus_sf_proj, viz_config_df = p0_viz_config_df, + plot_imp_surf_raster(in_raster = p2_imp_surf_processed, conus_sf = p2_conus_sf_proj, viz_config_df = p0_viz_config_df, conus_col = "gray90", conus_inner = p2_conus_inner, viz_config_pal = p0_viz_config_pal$living_conditions, width = p0_viz_config_df$width_desktop, height = p0_viz_config_df$height_desktop, font_size = p0_viz_config_df$font_size_desktop, barwidth = 20, barheight = 1, diff --git a/3_visualize/src/plot_utils.R b/3_visualize/src/plot_utils.R index 66d21c1ebe2447dc9fee4b54b7ce4f204242cae2..9ac4f016241a9d30883b33c0bdf383887ce6d69a 100644 --- a/3_visualize/src/plot_utils.R +++ b/3_visualize/src/plot_utils.R @@ -235,7 +235,7 @@ plot_imp_surf_raster <- function(in_raster, conus_sf, conus_inner, conus_col, ou geom_sf(data = conus_inner, fill = NA, color = conus_col, linewidth = 0.5) + scale_fill_gradientn( colors = colorRampPalette(c(low_ramp_col, viz_config_pal))(100), - name = "% Impervious Surface, 2022", + name = "Percent impervious surface, 2022", limits = c(0, 100), breaks = c(0, 25, 50, 75, 100), labels = c("0%", "25%", "50%", "75%", "100%"),