Skip to content
Snippets Groups Projects
Commit 0134b34b authored by Azadpour, Elmera's avatar Azadpour, Elmera
Browse files

update viz in raster target names

parent 25f16d9e
No related branches found
No related tags found
1 merge request!90Add raster maps
...@@ -118,7 +118,7 @@ p3_targets <- list( ...@@ -118,7 +118,7 @@ p3_targets <- list(
# population density raster plot # population density raster plot
tar_target( tar_target(
p3_pop_density_plot, 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, 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, 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, font_size = p0_viz_config_df$font_size_desktop, barwidth = 20, barheight = 1,
...@@ -127,7 +127,7 @@ tar_target( ...@@ -127,7 +127,7 @@ tar_target(
# impervious surfaces raster plot # impervious surfaces raster plot
tar_target( tar_target(
p3_imp_surf_plot, 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, 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, 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, font_size = p0_viz_config_df$font_size_desktop, barwidth = 20, barheight = 1,
......
...@@ -235,7 +235,7 @@ plot_imp_surf_raster <- function(in_raster, conus_sf, conus_inner, conus_col, ou ...@@ -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) + geom_sf(data = conus_inner, fill = NA, color = conus_col, linewidth = 0.5) +
scale_fill_gradientn( scale_fill_gradientn(
colors = colorRampPalette(c(low_ramp_col, viz_config_pal))(100), colors = colorRampPalette(c(low_ramp_col, viz_config_pal))(100),
name = "% Impervious Surface, 2022", name = "Percent impervious surface, 2022",
limits = c(0, 100), limits = c(0, 100),
breaks = c(0, 25, 50, 75, 100), breaks = c(0, 25, 50, 75, 100),
labels = c("0%", "25%", "50%", "75%", "100%"), labels = c("0%", "25%", "50%", "75%", "100%"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment