Get a median summary chronogram from a datelifeResult object.
Source: R/datelife_median.R
datelife_result_median.RdGet a median summary chronogram from a datelifeResult object.
Arguments
- datelife_result
A
datelifeResultobject, usually an output ofget_datelife_result().- ...
Arguments passed on to
summary_matrix_to_phylosumm_matrixAny summary patristic distance matrix, such as the ones obtained with
datelife_result_sdm_matrix()ordatelife_result_median_matrix().total_distanceWhether the input
summ_matrixstores total age distance (from tip to tip) or distance from node to tip. Default toTRUE, divides the matrix in half, ifFALSEit will take it as is.useA character vector indicating what type of age to use for summary tree. One of the following:
- "mean"
It will use the
mean()of the node ages insumm_matrix.- "median"
It uses the
stats::median()age of node ages insumm_matrix.- "min"
It will use the
min()age from node ages insumm_matrix.- "max"
Choose this if you wanna be conservative; it will use the
max()age from node ages insumm_matrix.- "midpoint"
It will use the mean of minimum age and maximum age.
target_treeA
phyloobject. Use this in case you want a specific backbone for the output tree.datelife_queryA
datelifeQueryobject, usually an output ofmake_datelife_query().