model.fit: Examine fit of observations to a suitable habitat model

Description Usage Arguments Details Value

View source: R/model.fit.R

Description

Compares a suitable habitat model to observations specified as spatial points.

Usage

1
model.fit(mod, pts, regions = NULL, method = "hexagon")

Arguments

mod

A suitable habitat model object.

pts

SpatialPoints object containing observations of the species. If proj4string is missing, it is assumed to be equal to mod.

regions

A SpatialPolygonsDataFrame defining the region boundaries. The region identifier in \@data must be named "region".

method

hexagon, raster, polygon

Details

...

Value

Returns a list containing suitable habitat estimates in following formats: 1) $raw: oceanographic model (oceangr.model) grid cells, 2) $raster: rasterized cells whose resolution is defined by the res with disconnected regions smaller than the drop.crumbs parameter removed (in km2), 3) $polygon: polgyonized raster data, and 4) $hexagon: hexagonized raster data. See hexbin.


MikkoVihtakari/SuitableHabitat documentation built on Jan. 30, 2021, 12:50 a.m.