plot_pressure_ranking_percentiles: Plot top pressures percentiles

Description Usage Arguments Value Examples

View source: R/plot_pressure_ranking_percentiles.R

Description

Produce a ggplot2 plot showing the distribution of a BCU's pixels percentiles, relative to all reef pixels, and the percentile of the BCU's average, for all indicators (except number of ports, and excluding climate scores). The indicators are ordered in descending order by the value of the indicator average's percentile.

Usage

1
plot_pressure_ranking_percentiles(bcu_percentiles, bcu_top_pressures)

Arguments

bcu_percentiles

Percentiles for a single BCU, from data/bcus_percentiles.rds

bcu_top_pressures

Top pressures for a single BCU, from data/bcus_top_pressures.rds

Value

A ggplot2 object

Examples

1
2
3
4
5
bcu_name <- "Aceh"
bcu_percentiles <- readRDS(here::here("data", "bcus_percentiles.rds"))[[bcu_name]]
bcu_top_pressures <- readRDS(here::here("data", "bcus_top_pressures.rds"))[[bcu_name]]

plot_pressure_ranking_percentiles(bcu_percentiles, bcu_top_pressures)

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