View source: R/craft-align-phylo.R
fortify_data_frame.phylo | R Documentation |
This function converts various objects to a data frame.
## S3 method for class 'phylo'
fortify_data_frame(
data,
...,
type = "rectangle",
center = FALSE,
tree_type = NULL,
tip_pos = NULL,
data_arg = NULL,
call = NULL
)
data |
A |
... |
These dots are for future extensions and must be empty. |
type |
A string indicates the plot type, |
center |
A boolean value. if |
tree_type |
A single string, one of
Usually, you don't need to modify this. |
tip_pos |
The x-coordinates of the tip. Must be the same length
of the number of tips in |
data_arg |
The argument name for |
call |
The execution environment where |
A data frame
with the node coordinates:
.index
: the original index in the tree for the the tip/node.
label
: the tip/node label text.
x
and y
: x-axis and y-axis coordinates for the tip/node.
tip
: A logical value indicates whether current node is a tip.
edge
: A data frame
for edge coordinates:
x
and y
: x-axis and y-axis coordinates for the start node of the edge.
xend
and yend
: the x-axis and y-axis coordinates of the terminal node
for edge.
Other fortify_data_frame()
methods:
fortify_data_frame.character()
,
fortify_data_frame.default()
,
fortify_data_frame.dendrogram()
,
fortify_data_frame.matrix()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.