map.Nmix.resi: Mapping of residuals

View source: R/plot-Nmix-resi&map-Nmix-resi_AHM1_6-9-3_plotting.R

map.Nmix.resiR Documentation

Mapping of residuals

Description

Produces a map of the mean residuals from an N-mixture model fit by function pcount in unmarked. Used in AHM1 - 6.9.3 to produce maps of Switzerland with the residuals for each site.

Usage

map.Nmix.resi(fm, x, y)

Arguments

fm

the fitted model object

x

x coordinates of each site

y

y coordinates of each site

Value

None. Used for its plotting side effects.

Note

In previous versions, the defaults were x = tits$coordx and y = tits$coordy, but those defaults only worked if the data object tits was in the workspace. To run the code on page 263 of AHM1, you now need to specify the coordinates, eg, map.Nmix.resi(fm5, x = tits$coordx, y = tits$coordy).

Author(s)

Marc Kéry & Andy Royle

References

Kéry, M. & Royle, J.A. (2016) Applied Hierarchical Modeling in Ecology AHM1 - 6.9.3.


mikemeredith/AHMbook documentation built on Dec. 5, 2022, 12:58 p.m.