plot_gene_support: Plot gene tree support Plot a tree with gene tree support...

View source: R/plot_gene_support.R

plot_gene_supportR Documentation

Plot gene tree support Plot a tree with gene tree support values on each edge.

Description

Plot gene tree support Plot a tree with gene tree support values on each edge.

Usage

plot_gene_support(
  main_tree,
  n_trees,
  support,
  edge_second_node = (length(main_tree$tip.label) + main_tree$Nnode - length(support) +
    1):(length(main_tree$tip.label) + main_tree$Nnode),
  lab_size = 2,
  supp_size = 2,
  xlim_max = 0.5,
  hjust = 1
)

Arguments

main_tree

A tree to plot edge information for.

n_trees

The number of trees providing support for the main tree.

support

A list of node values for each branch of main_tree.

edge_second_node

Second node in the edge for each support value.

lab_size

The size of the tip labels, default is 2.

supp_size

The size of the support labels, default is 2.

xlim_max

The length of the x axis.

hjust

Horizontal adjustment for support labels.

Value

A ggtree object.


svteichman/TreeVizPackage documentation built on June 22, 2022, 11:21 p.m.