plot_m: plot true and estimated migratory connectivity

View source: R/plot_m.R

plot_mR Documentation

plot true and estimated migratory connectivity

Description

This function plots the kernel density estimate and true density for simulated data.

Usage

plot_m(
  mark_recapture_object,
  b = "all",
  pdf = FALSE,
  log = FALSE,
  true_values_available = FALSE,
  uq = 1,
  draw_boundaries = FALSE,
  no_ci = FALSE,
  profile_of_parameter = NULL
)

Arguments

mark_recapture_object

object of class mark_recapture_object (see mark_recapture_object())

b

specifies the area of origin for which the plot is drawn. Can be either a origin_name, the corresponding number of the areas of origin or "all" for all areas of origin at once.

pdf

logical, saves image as pdf-file if TRUE. Defaults to FALSE.

log

plots logarithm of migratory connectivity. Defaults to FALSE.

true_values_available

logical, use TRUE for simulated data, FALSE for real-world data. Defaults to FALSE.

uq

upper quantile until which migratory connectivity value is plotted

draw_boundaries

logical, country boundaries will be drawn, if TRUE. Only works if coordinates are in longitude/latitude system. Defaults to FALSE.

no_ci

suppresses drawing the confidence interval, even if bootstrap information is in the mark_recapture_object. Defaults to FALSE.

profile_of_parameter

sf-object containing the information of the profile line, along which the values of a parameter can be plotted including the bootstrap confidence interval. If this information is given, the profile line will be plotted

Value

depending on arguments plot as pdf or to plot device

Examples

plot_m(mro1D, true_values_available = TRUE)

SaskiaSchirmer/CONSURE documentation built on Sept. 3, 2023, 8:52 a.m.