Defines a spatial range of a population and its most important parameters.

population(
  name,
  time,
  N,
  parent = "ancestor",
  map = NULL,
  center = NULL,
  radius = NULL,
  polygon = NULL,
  remove = NULL,
  intersect = TRUE,
  competition_dist = NULL,
  mate_dist = NULL,
  offspring_dist = NULL,
  aquatic = FALSE
)

Arguments

name

Name of the population

time

Time of the population's first appearance

N

Number of individuals at the time of first appearance

parent

Parent population object or "ancestor" (indicating that the population does not have an ancestor, and that it is the first population in its "lineage")

map

Object of the type slendr_map which defines the world context (created using the world function)

center

Two-dimensional vector specifying the center of the circular range

radius

Radius of the circular range

polygon

List of vector pairs, defining corners of the polygon range or a geographic region of the class slendr_region from which the polygon coordinates will be extracted (see the region() function)

remove

Time at which the population should be removed

intersect

Intersect the population's boundaries with landscape features?

competition_dist, mate_dist

Maximum spatial competition and mating choice distance

offspring_dist

Standard deviation of the normal distribution of the parent-offspring distance

aquatic

Is the species aquatic (FALSE by default, i.e. terrestrial species)?

Value

Object of the class slendr_pop

Details

There are three ways to specify a spatial boundary: i) circular range specified using a center coordinate and a radisu, ii) polygon specified as a list of two-dimensional vector coordinates, iii) polygon as in ii), but defined (and named) using the region function.