Simple kin dispersal simulation for graphical display. (graphs the pre-existing simulation).
simgraph_graph(
result,
nsims = 10,
labls = TRUE,
steps = TRUE,
moves = TRUE,
shadows = TRUE,
kinship = NULL,
show_area = TRUE,
centred = FALSE,
pinwheel = FALSE,
scattered = FALSE,
lengths = TRUE,
lengthlabs = TRUE,
histogram = FALSE,
binwidth = posigma/5,
freqpoly = FALSE
)
simulation supplied from simgraph_data() function (tibble)
number of families to graph
Logical. Displays labels.
Logical. Whether or not to show any details of dispersal movement
Logical. Whether or not to show (curved) lines denoting dispersal movement
Logical. Whether or not to show (dashed) shadows tracing dispersal movement.
Character. Lists the kin category the simulation is reconstructing. One of "PO", "FS", "HS", "AV", "GG", "HAV", "GGG", "1C", "1C1", "2C", "GAV" (no half-categoris included)
Logical. Whether or not to show the parental seed area as defined in data$dims
Logical. Whether or not to centre the coordinates on one individual.
Logical. Whether the final graph should be of the pinwheel form.
Logical. Whether the final graph should be of the scatter form.
Logical. Whether or not to show a dashed line connecting the 'focus' kin to illustrate overall distance of dispersal.
Logical. Whether to show labels denoting distance of dispersal between focus kin.
Logical. Whether the final graph should be of the histogram form.
Numeric. Binwidth for histogram or freqpoly.
Logical. Whether the final graph should be of the freqpoly form.
Returns a ggplot object for graphing.
Other simgraph:
simgraph_data()
# NOT RUN {
simdata <- simgraph_data()
simgraph_graph(simdata)
# }
Run the code above in your browser using DataLab