Spatial population dynamics

population()

Define a population and its original spatial range

expand()

Expand the population range

move()

Move the population to a new location in a given amount of time

geneflow()

Define a geneflow event

change()

Update the population map or one of its parameters

Defining spatial features

world()

Define a world map for all spatial operations

region()

Define a geographic region

join()

Combine two slendr_region objects into a single geographic region

overlap()

Generate the overlap of two slendr_region objects

subtract()

Generate the difference between two slendr_region objects

Coordinate conversion and distances

convert()

Convert between coordinate systems

distance()

Calculate the distance between a pair of spatial boundaries

dimension()

Return the dimensions of the world map

Model visualization and diagnostics

plot(<slendr>)

Plot slendr geographic features on a map

print(<slendr>)

Print a summary of a slendr object

graph()

Plot geneflow graph based on given model configuration

animate()

Animate the simulated population dynamics

ancestries()

Plot simulated ancestry proportions

explore()

Open an interactive browser of the spatial model

Compiling and running spatial models

compile()

Compile the spatial demographic model

read()

Read a previously serialized model configuration

script()

Substitute variables in a template SLiM script

slim()

Run a slendr model as a SLiM script