Skip to contents

One row per projection: the distribution of the change predicted by the null models (grey; the line marks their 95% interval), "no change" (dashed) and the change predicted from the real records (the point, coloured by the verdict), labelled with the standardised effect size (SES) and the design share (see transfer_bias_test()).

Usage

plot_transfer_bias(
  x,
  metric = "mean_change",
  scope = "area",
  base_size = 11,
  file = NULL,
  width = 2550,
  height = 1440
)

Arguments

x

Result of transfer_bias_test().

metric

"mean_change", "share_declining" or "area_change".

scope

"area" or "region".

base_size

Base font size.

file

Optional file(s) to save the plot to, e.g. "fig.pdf" or c("fig.png", "fig.pdf"); the format follows the extension, and a name without extension is saved as PNG and PDF. The plot is also returned.

width, height

Size of the saved figure in pixels (PDF and SVG at 300 pixels per inch).

Value

A ggplot object.

Examples

# see transfer_bias_test() for how `tb` is made
if (FALSE) { # \dontrun{
plot_transfer_bias(tb)
} # }