Skip to contents

This is the quickest path through the package, depending on what you’re trying to do.

1) First: understand what spesim is

If you’re teaching with spesim, start there: it sets expectations and prevents over-interpretation.

2) Run your first simulation

Minimal, in-memory run:

library(spesim)

P <- load_config(system.file("examples/spesim_init_basic.txt", package = "spesim"))
res <- spesim_run(P, write_outputs = FALSE, seed = 77)

plot_spatial_sampling(res$domain, res$species_dist, res$quadrats, res$P)

3) Choose a sampling design

4) Add structure (gradients, interactions, point processes)

5) Validate that the patterns match your intent

6) Stability / teaching materials

If you rely on specific functions in teaching content: