View source: R/plot_cont_sim.R
Function plots the trajectory of a single continuous trait evolving along the branches of the tree following a lineage-age dependent process including events of budding (or symmetric) speciation.
1 2 3 4 5 6 7 8 9 | plot_cont_sim(
sim_obj,
edge_width = 1.5,
bg = "white",
jump_col = "coral",
jump_width = 1,
main = "",
legend = TRUE
)
|
sim_obj |
the output of a 'buddPhy' simulation function. |
edge_width |
the width of the lines |
bg |
the color for the background of the plot. Helps to visualize some colors. Use "white" to turn it off. |
jump_col |
the color of the line connecting the states for the nodes in which a phenotype jump happened after budding speciation. |
jump_width |
the line width for the jump lines. |
main |
a title for the plot. |
legend |
if to add a legend. Note that legend can get in the way of the plot sometimes. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.