Description Usage Arguments Value Examples
View source: R/plot_pressure_ranking_percentiles.R
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.
1 | plot_pressure_ranking_percentiles(bcu_percentiles, bcu_top_pressures)
|
bcu_percentiles |
Percentiles for a single BCU, from |
bcu_top_pressures |
Top pressures for a single BCU, from |
A ggplot2 object
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.