Plot a mark-recapture model's output

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

if (FALSE) { 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") }