kud_habitat: Define a 'habitat' grid for kernel smoothing

View source: R/kud_tools.R

kud_habitatR Documentation

Define a ‘habitat’ grid for kernel smoothing

Description

This function defines a ‘habitat’ grid for kernel smoothing (e.g., via kud_around_coastline).

Usage

kud_habitat(map, mask = map, mask_inside = FALSE, plot = TRUE, ...)

Arguments

map

A raster that defines grid properties.

mask, mask_inside

Mask options passed to mask_io.

plot, ...

A logical input that defines whether or not to plot the habitat grid, alongside any additional arguments passed to plot.SpatialPixelsDataFrame.

Value

The function returns a SpatialPixelsDataFrame object that defines ‘habitat’ (1) versus ‘non-habitat’ (0).

Author(s)

Edward Lavender

See Also

kud_around_coastline

Examples

kud_habitat(map = dat_gebco, mask_inside = FALSE)
kud_habitat(map = dat_gebco, mask = dat_coast, mask_inside = TRUE)

edwardlavender/flapper documentation built on Jan. 22, 2025, 2:44 p.m.