fit_survey_maps: Fit geostatistical survey models and make maps

View source: R/maps.R

fit_survey_mapsR Documentation

Fit geostatistical survey models and make maps

Description

fit_survey_maps() is a helper function that calls gfplot::fit_survey_sets() appropriately for the various surveys.

Usage

fit_survey_maps(
  dat,
  species = "pacific cod",
  include_depth = TRUE,
  family = sdmTMB::tweedie(),
  surveys = c("SYN QCS", "SYN HS", "SYN WCHG", "SYN WCVI"),
  years = c(2017, 2018),
  ...
)

Arguments

dat

Data from gfdata::get_survey_sets().

species

The species name.

include_depth

Logical for whether or not to include depth and depth squared as predictors.

family

Family

surveys

Character vector describing the surveys to fit. Can include multiple surveys if desired.

years

The years of survey data to use.

...

Any other arguments to pass to gfplot::fit_survey_sets().

model

Whether to fit an INLA or glmmfields model.


pbs-assess/gfsynopsis documentation built on March 26, 2024, 7:30 p.m.