edgeplot {ontophylo} | R Documentation |
Plot edge profiles and contMap
Description
Wrapper function for plotting edge profiles and contmap from NHPP.
Usage
edgeplot(map_stat, prof_stat, plot.cont = TRUE)
Arguments
map_stat |
contMap object. A contMap obtained using the 'make_contMap_KDE' function. |
prof_stat |
tibble. A tibble with the edgeplot information obtained using the 'edge_profiles4plotting' function. |
plot.cont |
logical. Whether to plot also the contMap or not. |
Value
A plot with the edge profiles and contMap of the selected statistic (e.g. branch rates).
Author(s)
Diego Porto
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 contmap nhpp data.
map_stat <- make_contMap_KDE(tree_discr, Edge_KDE_stat)
# Make edgeplot nhpp data.
prof_stat <- edge_profiles4plotting(tree_discr, Edge_KDE_stat)
# Plot.
suppressWarnings(edgeplot(map_stat, prof_stat))
[Package ontophylo version 1.1.3 Index]