plot_model: Plot a mark-recapture model's output

View source: R/plot_model.R

plot_modelR Documentation

Plot a mark-recapture model's output

Description

Plot a mark-recapture model's output

Usage

plot_model(model, what)

Arguments

model

A model objectgenerated by mrmr:fit_model().

what

What to plot. Must be a character string of either "abundance", "recruitment", or "survival".

Value

A ggplot object.

Examples

## Not run: 
captures <- system.file("extdata", "capture-example.csv", package = "mrmr")
translocations <- system.file("extdata", "translocation-example.csv",
                              package = "mrmr")
surveys <- system.file("extdata", "survey-example.csv", package = "mrmr")
out <- clean_data(captures, translocations, surveys)
model <- fit_model(out, chains = 1, iter = 10)
plot_model(model, what = "abundance")

## End(Not run)

SNARL1/mrmr documentation built on Nov. 23, 2023, 7:04 a.m.