get.transmat.phylo | R Documentation |
Separate a transmat
object into different seedling
event.
get.transmat.phylo(x, vertex.exit.times, by_areas = "all", max_value = NULL)
x |
An object of class |
vertex.exit.times |
optional numeric vector providing the time of departure of vertices, to be used to scale the lengths of branches reaching to the tips. Index position on vector corresponds to network id. NA indicates no departure, so branch will extend to the end of the tree. |
by_areas |
by_areas = "all" if interested in all seeds, or by_areas = "region" if interested in seeds for region only. |
max_value |
max value for comparison to select the seed values. It will select only seed values less than max_value for seeds from region only. |
Converts a transmat
object containing information about the
history of a simulated infection into a separated transmission matrix by
seedling event.
This function was created using as base the function
as.phylo.transmat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.