| stasis | R Documentation |
Simulates stasis of mean trait values as independent, normally distributed random variables with mean mean and standard deviation sd
stasis(t, mean = 0, sd = 1)
t |
times at which the traits are determined |
mean |
number, mean trait value |
sd |
strictly positive number, standard deviation of traits |
A list with two elements: t and y. t is a duplicate of the input t, y are the corresponding trait values. Output list is of S3 class timelist (inherits from list) and can thus be plotted directly using plot, see ?admtools::plot.timelist
random_walk() and ornstein_uhlenbeck() to simulate other modes of evolution
stasis_sl() to simulate stasis on specimen level - for usage in conjunction with the paleoTS package.
library("admtools") # required for plotting of results
t = seq(0, 1, by = 0.01)
l = stasis(t)
plot(l, type = "l") # plot lineage
l2 = stasis(t, mean = 0.5, sd = 0.3) # simulate second lineage
lines(l2$t, l2$y, col = "red") # plot second lineage
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.