Package 'mseviz'

Title: Plots and Visualization Tools for Management Strategy Evaluation Results
Description: A set of plots and visualization tools to explore and present the results of Management Strategy Evaluation (MSE) analyses.
Authors: Iago Mosqueira [aut, cre]
Maintainer: Iago Mosqueira <[email protected]>
License: EUPL
Version: 0.2.6.9008
Built: 2024-11-02 04:43:16 UTC
Source: https://github.com/flr/mseviz

Help Index


Boxplot by MP for a range of statistics Figure 3

Description

Boxplot by MP for a range of statistics Figure 3

Usage

plotBPs(
  data,
  statistics = unique(data$statistic),
  size = 3,
  target = missing,
  limit = missing,
  reference = missing,
  yminmax = c(0.1, 0.9),
  lowupp = c(0.25, 0.75),
  show.mean = NULL
)

Examples

data(perf)
# A data.table of performance statistics per run,
head(perf)
# plot selected statistics
plotBPs(perf, statistics=c("SB0", "FMSY", "green"))
# Use FLR's own colourblind-friendly palette
plotBPs(perf, statistics=c("SB0", "FMSY", "green")) +
  scale_fill_flr()
# Add targets and limits by statistics, as named vectors
plotBPs(perf, statistics=c("SB0", "FMSY", "green"),
  target=c(SB0=0.40, FMSY=1, green=0.5), limit=c(SB0=0.10))
# Add references inm gray
plotBPs(perf, statistics=c("SB0", "FMSY", "green"),
  reference=c(SB0=0.50))
# size controls the diameter of the point behind thin boxplots
plotBPs(perf, statistics=c("SB0", "FMSY", "green"), size=3)
# Signal MPs by type (color) and target level (hue)
plotBPs(perf, statistics=c("SB0", "FMSY", "green")) +
scale_fill_manual(values=c("#f70e4a", "#fa537d", "#fc98b1",
 "#1189af", "#30beeb", "#83d8f3"))

Trade-offs plot by MP for a range of statistics Figure 4

Description

Trade-offs plot by MP for a range of statistics Figure 4

Usage

plotTOs(
  data,
  x = unique(data$statistic)[1],
  y = setdiff(unique(data$statistic), x),
  probs = c(0.1, 0.5, 0.9),
  size = 0.5,
  alpha = 0.75
)

Examples

data(perf)
plotTOs(perf, x="C", y=c("SBMSY", "FMSY", "green", "SB0"))