plot_cont_sim: Plot trajectory of continuous trait simulation

Description Usage Arguments

View source: R/plot_cont_sim.R

Description

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.

Usage

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
)

Arguments

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.


Caetanods/buddPhy documentation built on Oct. 12, 2021, 12:14 p.m.