map_indicator: Map BCU Indicator

Description Usage Arguments Value Examples

View source: R/map_indicator.R

Description

Produce a satellite map for a BCU, along with the values for a supplied indicator.

Usage

1
map_indicator(bcu, tile, indicator = NA, indicator_title = indicator, bcu_ext)

Arguments

bcu

Indicator data for a single BCU, from data/bcus_list.rds

tile

Bing tile for a single BCU, from data/bcus_tiles_indicator.rds

indicator

Indicator being mapped

indicator_title

Longer-form title for indicator being mapped, used in creating the map title. Defaults to indicator

bcu_ext

Extension factor of the BCU's bounding box, from data/bcus_ext.rds

Value

A tmap object

Examples

1
2
3
4
5
6
7
8
9
bcu_name <- "Aceh"
bcu <- readRDS(here::here("data", "bcus_list.rds"))[[bcu_name]]
tile <- readRDS(here::here("data", "bcus_tiles_indicator.rds"))[[bcu_name]]
bcu_ext <- readRDS(here::here("data", "bcus_ext.rds"))[[bcu_name]]

map_indicator(bcu, tile,
  indicator = "grav_NC",
  indicator_title = "Fishing: Market Pressure", bcu_ext
)

WCS-Marine/local-reef-pressures documentation built on Feb. 13, 2022, 9:26 a.m.