create_tree_layout {phylepic} | R Documentation |
Create a graph layout for plotting
Description
This lays out a graph using ggraph::create_layout()
with the "dendrogram"
layout, takes edge lengths from the tree, and flips the layout coordinates.
The plotting functions associated with phylepic()
expect the graph to
be laid out using these settings.
Usage
create_tree_layout(tree, tip_data = NULL)
Arguments
tree |
A tree-like graph or a |
tip_data |
A data frame with tip metadata. There must be a column called
|
Value
A "layout_ggraph" object suitable for plotting with ggplot2::ggplot'.
[Package phylepic version 0.2.0 Index]