Map score as deviation from average in zone with blocks

oh_map_zone_score_dev(
  zone_key,
  stk_web_tif = "~/My Drive/projects/offhab/data/derived/stack_web.tif",
  zonal_blocks_csv = "~/Github/offshorewindhabitat/scripts/data/zonal_blocks.csv"
)

Arguments

zone_key

one of zone_key from offhabr::oh_zones

stk_web_tif

path to stack_web.tif containing layers "oh_zones_v1_web" and "score_v1_web"

zonal_blocks_csv

path to zonal average values of blocks

Value

htmlwidget map as leaflet::leaflet() with attr("zone_name")