Description Usage Arguments Value Examples
Generate tree file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | sp_tree_plot(
treefile,
tree_type = "iqtree",
tree_attrib = NULL,
tree_msa = NULL,
color_branches = NULL,
layout = "fan",
ladderize = F,
branch.length = "none",
tip_text = "label",
tip_text_size = 3,
bootstrap = TRUE,
bootstrap_variable = NULL,
legend.position = "bottom",
bootstrap_size = 3,
bootstrap_color = "red",
debug = FALSE,
...
)
|
treefile |
Aphylogenetic tree file (Only tested for tree generated by iqtree) |
tree_type |
Currently 4 types of tree supported, |
tree_attrib |
A data frame with first columns match node names of tree file. |
tree_msa |
A multiple-aligned fasta file used to generate the tree file. A tree with Multiple-Sequence-Alignment plot would be generated when given. |
color_branches |
Name of columns in |
layout |
one of 'rectangular', 'slanted', 'fan', 'circular', 'radial', 'equal_angle' or 'daylight' |
ladderize |
logical (default |
branch.length |
variable for scaling branch, if 'none' draw cladogram |
tip_text |
Show branch labels or supply a name of columns in |
tip_text_size |
Text size of branch labels. |
bootstrap |
Show bootstrap value or not. |
bootstrap_variable |
|
legend.position |
Position of legend, accept top, bottom, left, right, none or c(0.8,0.8). |
bootstrap_size |
Text size of bootstrap labels. |
bootstrap_color |
Text color of bootstrap labels. |
... |
additional parameter |
A ggplot2 object
1 2 3 4 5 | library(ggtree)
library("ggplot2")
library(YSX)
treefile <- "iqtree.treefile"
sp_tree_plot(treefile)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.