View source: R/shifts_manipulations.R
shifts_to_simmap | R Documentation |
shifts_to_simmap
takes a vector of edges where the shifts occur, and return a
simmap formatted tree, mapped with corresponding regimes.
shifts_to_simmap(tree, shifts_edges)
tree |
input tree in |
shifts_edges |
shifts positions on the edges |
Ancestral state is always 0, and other states are consecutive integers.
tree a simmap object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.