Skip to contents

This function simulates coral cover and colony distribution within a specified polygon. It generates species-specific ratios, predicts coral colony sizes, and uses spatial algorithms to distribute colonies without overlap.

Usage

coralsim(input, set_overlap, raw = FALSE, seed = NULL, crs = 3857, ...)

Arguments

input

An sf polygon object defining the plot area.

set_overlap

A percentage overlap setting for colonies (randomized).

raw

Logical. If TRUE, returns the raw data instead of spatial polygons.

seed

An optional seed value for reproducibility.

crs

The coordinate reference system (default is EPSG:3857).

...

Additional arguments passed to underlying functions.

Value

An sf object containing non-overlapping coral colony polygons, or raw data if raw = TRUE.