plot_indicator_dumbbell: Plot indicator values

Description Usage Arguments Examples

View source: R/plot_indicator.R

Description

Produce a ggplot2 plot of a BCU's indicator values, along with the global median for that indicator and the medians of other BCUs in that subregion.

Usage

1
plot_indicator_dumbbell(bcus_top_pressures, bcus_regions, bcu_name, indicator)

Arguments

bcus_top_pressures

Top pressures for all BCUs, from data/bcus_top_pressures.rds

bcus_regions

Data containing which regions BCUs belong to, from data/bcus_regions.rds

bcu_name

Name of the BCU being plotted

indicator

Indicator being plotted

Examples

1
2
3
4
bcus_top_pressures <- readRDS(here::here("data", "bcus_top_pressures.rds"))
bcus_regions <- readRDS(here::here("data", "bcus_regions.rds"))

plot_indicator_dumbbell(bcus_top_pressures, bcus_regions, "Aceh", "grav_NC")

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