edge_profiles4plotting {ontophylo} | R Documentation |
Make edge profiles for plotting
Description
Gets the information necessary for making an edgeplot, where the tree is plotted in a space where the x axis is the time and y axis the scale of the desired statistics.
Usage
edge_profiles4plotting(tree.discr, Edge.KDE.stat)
Arguments
tree.discr |
phylo object. A discretized tree using the 'discr_Simmap' function. |
Edge.KDE.stat |
list. A list with the distributions of the estimated parameter of KDEs for each edge. |
Value
A tibble with X and Y coordinates and other information necessary for making an edgeplot.
Author(s)
Sergei Tarasov
Examples
data("hym_tree", "hym_kde")
# Get reference tree.
tree_discr <- discr_Simmap(hym_tree, res = 200)
# Get smoothing of normalized edge KDE data for mean rates.
Edge_KDE <- hym_kde$head
Edge_KDE_stat <- Edge_KDE$loess.lambda.mean
# Make edgeplot nhpp data.
stat_prof <- edge_profiles4plotting(tree_discr, Edge_KDE_stat)
[Package ontophylo version 1.1.3 Index]