plotRes: Plot estimated population sizes from optimized population...

Description Usage Arguments Value Examples

View source: R/outputFunctions.R

Description

Plot population trajectories.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
plotRes(
  results = res,
  data = data,
  component = c("N0", "Ntot"),
  plotNlims = TRUE,
  plotProjections = TRUE,
  plotProjMean = TRUE,
  width = 15,
  height = 10,
  grDev = FALSE
)

Arguments

results

Output from fitted model

data

Original data on estimated pup production (set to NA if these are not to be included).

component

Which population component to plot. Can be either 'N0' for pups, 'N1' for adults, 'Ntot' for total abundance or a vector with both. Default showing pups and total abundance.

plotNlims

Logical parameter to turn on and off Nlim, N50, and N70 lines, default True

plotProjections

Logical parameter to turn on and off plotting of projections, default True

width

Width of the figure

height

Height of the figure

grDev

Logical parameter to decide wether to open a OS independent graphical window

plotMeanProj

Logical parameter to turn on and off plotting of the mean projections, default TRUE

Value

plot Returns a plot of predicted population size for different population components

Examples

1
plotRes(res, data)

NorskRegnesentral/rSPAMM documentation built on Nov. 16, 2020, 10:58 p.m.