Description Usage Arguments Value Author(s) Examples
View source: R/TreeWalkerContinuous.R
Perform Brownian motion (a random walk) on a sphere.
1 2 3 4 5 6 7 8 9 | TreeWalkerContinuous(
tree,
slon = 0,
slat = 0,
niter = 1000,
steplengthmean = 0,
steplengthsd = 100,
EarthRad = 6367.4447
)
|
tree |
tree (as phylo object) to use |
slon |
starting longitude |
slat |
starting latitude |
niter |
number of time steps to use |
steplengthmean |
mean used for random walk draws |
steplengthsd |
standard deviation used for random walk draws |
EarthRad |
Earth radius in kilometres. |
A list of edges with matrices showing times and coordinates
Graeme T. Lloyd graemetlloyd@gmail.com
1 2 | tree <- rtree(10)
TreeWalkerContinuous(tree, slat = 0, slon = 0, niter = 1000, steplengthmean = 0, steplengthsd = 100)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.