TreeWalkerContinuous: Brownian motion (random walk) on a sphere

Description Usage Arguments Value Author(s) Examples

View source: R/TreeWalkerContinuous.R

Description

Perform Brownian motion (a random walk) on a sphere.

Usage

1
2
3
4
5
6
7
8
9
TreeWalkerContinuous(
  tree,
  slon = 0,
  slat = 0,
  niter = 1000,
  steplengthmean = 0,
  steplengthsd = 100,
  EarthRad = 6367.4447
)

Arguments

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.

Value

A list of edges with matrices showing times and coordinates

Author(s)

Graeme T. Lloyd graemetlloyd@gmail.com

Examples

1
2
tree <- rtree(10)
TreeWalkerContinuous(tree, slat = 0, slon = 0, niter = 1000, steplengthmean = 0, steplengthsd = 100)

laurasoul/dispeRse documentation built on May 25, 2021, 4:50 a.m.