Geographic features

world()

Define a world map for all spatial operations

region()

Define a geographic region

Population dynamics configuration

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

admixture()

Define an admixture event

change()

Update the population map or one of its parameters

Model visualization and diagnostics

plot(<spannr>)

Plot spannr geographic features on a map

print(<spannr>)

Print a summary of a spannr object

graph()

Plot admixture 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 spannr model as a SLiM script