Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

simgraph_data

Simple kin dispersal simulation for graphical display. (returns the data side as a tibble).


Description

Simple kin dispersal simulation for graphical display. (returns the data side as a tibble).

Usage

simgraph_data(nsims = 1000, posigma = 50, dims = 250, kinship = "2C")

Arguments

nsims

Integer. The number of kin dispersal families to simulate.

posigma

Integer. The axial deviation of the (simple) parent-offspring dispersal kernel governing this simulation.

dims

Integer. Lays out the length of the sides of a square within which parent individuals are seeded.

kinship

Character. Lists the kin category the simulation is reconstructing. One of "PO", "FS", "HS", "AV", "GG", "HAV", "GGG", "1C", "1C1", "2C", "GAV" (no half-categories included)

Value

Returns a tibble containing the coordinates of the f0 to f2 generations, as well as coordinates and distances relative to the 'focus' kinship categories. (kindist, kinmid, k1 & k2)

See Also

Other simgraph: simgraph_graph()

Examples

simgraph_data(nsims = 100, dims = 1000, kinship = "GAV")

kindisperse

Simulate and Estimate Close-Kin Dispersal Kernels

v0.10.1
MIT + file LICENSE
Authors
Moshe-Elijah Jasper [aut, cre] (<https://orcid.org/0000-0003-4541-3223>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.