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

plotKDE(
  b,
  markRecaptureObject,
  pdf = FALSE,
  ylim = c(0, 1.5),
  trueValuesAvailable = FALSE,
  log = FALSE,
  ageMin = 0,
  ageMax = NULL,
  drawBoundaries = TRUE,
  title = TRUE
)

Arguments

b

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

markRecaptureObject

object of class markRecaptureObject (see markRecaptureObject())

pdf

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

ylim

vector in the form of c(ymin,ymax): limits of the y-axis. Defaults to c(0,3).

trueValuesAvailable

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

log

logical, uses log-scale for kernel-density-values if TRUE. Defaults to FALSE.

ageMin

numeric. Defaults to 0. If set only data points older than ageMin are plotted.

ageMax

numeric. If set only data points younger or equal ageMax are plotted. Defaults to NULL.

drawBoundaries

logical, country boundaries will be drawn, if TRUE. Defaults to TRUE.

title

logical, if TRUE the name of the breeding area will be added as the title. If FALSE, no title will be added. Defaults to TRUE.

Value

depending on arguments plot as pdf or to plot device

Examples

plotKDE("all", mro1D, trueValuesAvailable = TRUE)