simHGT | R Documentation |
Simulates brownian motion with HGT between random clades via poisson pt process
simHGT(tree, rate, a = 0, mu = 0, sig2 = 1)
tree |
phylo class object |
rate |
positive real number indicating rate of horizontal gene transfer per unit edge-length in tree |
a |
real number ancestral state |
mu |
drift |
sig2 |
volatility |
library(phylofactor)
library(ape)
set.seed(5)
tree <- rtree(10)
sim <- simHGT(tree,0.3,sig2=3)
par(mfrow=c(2,1))
plot(tree)
HGTplot(sim,lwd=2,main='HGT Dynamics')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.