random_habitat: Simulate a Random Habitat

Description Usage Arguments Value

Description

Simulates a random habitat, with holes and varying carrying capacity.

Usage

1
2
3
random_habitat(diam = 20000, res = 100, randfun = function(n) pmin(20, (2
  + rcauchy(n))), kern = "gaussian", sigma = 300, radius = 1500,
  width = diam, height = diam)

Arguments

diam

Diameter of the desired habitat (in real units, not number of cells).

res

Spatial resolution of the Raster.

randfun

Function used to sample values for the habitat (negative values will be set to NA).

kern

Smoothing kernel.

sigma

Smoothing kernel scale.

radius

Smoothing kernel maximum radius.

width

Width of the region (default: diam).

height

Height of the region (default: diam).

Value

A RasterLayer with nonnegative and missing values.


petrelharp/landsim documentation built on May 25, 2019, 2:53 a.m.