Description Usage Arguments Details Value Functions Author(s) See Also Examples
View source: R/summary_cophylo.R
Several utility functions for cophylogenetic set summarization. Including functions for printing an entire summary, and a summary of each part: host_tree, symb_tree, association_mat, and event_history.
1 2 3 4 5 6 7 | event_history(cophy)
## S3 method for class 'cophy'
event_history(cophy)
## S3 method for class 'cophy'
summary(object, ...)
|
cophy |
Cophylogenetic set |
object |
An object of class 'cophy' |
... |
Further arguments used in generic classes |
The summary for a cophylogenetic set outputs a summary of the host tree and the symbiont tree. The number of rows and columns of the association matrix, and a summary of the event_history.
Summary returns NULL.
event_history
: Returns event history of a cophylogenetic set
event_history.cophy
: Returns event history of a cophylogenetic set
Wade Dismukes and Emmanuel Paradis
sim_cophylo_bdp, summary for the generic, multiCophy, c.cophy
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | h_lambda <- 1.0
h_mu <- 0.3
c_lambda <- 0.0
s_lambda <- 1.0
s_mu <- 0.3
s_her <- 0.0
host_symb_sets <- sim_cophylo_bdp(hbr = h_lambda,
hdr = h_mu,
sbr = s_lambda,
cosp_rate = c_lambda,
sdr = s_mu,
host_exp_rate = s_her,
time_to_sim = 1.0,
numbsim = 1)
summary(host_symb_sets[[1]])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.