plot_s: plot true and estimated survival function

View source: R/plot_s.R

plot_sR Documentation

plot true and estimated survival function

Description

This function estimates the survival from a kernel density estimate of the data of recovered individuals. It uses the data of all areas of origin at once.

Usage

plot_s(
  mark_recapture_object,
  pdf = FALSE,
  true_values_available = FALSE,
  draw_boundaries = FALSE,
  xlb = NULL,
  zlim = c(0, 1),
  lon = NULL,
  lat = NULL,
  no_ci = FALSE,
  profile_of_parameter = NULL
)

Arguments

mark_recapture_object

object of class mark_recapture_object (see mark_recapture_object())

pdf

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

true_values_available

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

draw_boundaries

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

xlb

if not NULL, it zooms the plot to the limits given by xlim and ylim

zlim

boundaries in the direction of survival values

lon

vector of longitude. Defaults to NULL.

lat

vector of latitude. Defaults to NULL.

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

vector of length res with survival probabilities dependent on space

Examples

plot_s(mro1D, true_values_available = TRUE)

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