A library for working with phylogenetic and population genetic data.
v0.27.0
PhyloFactorCladeColors Struct Reference

#include <genesis/tree/mass_tree/phylo_factor_colors.hpp>

Detailed Description

Store a set of colors for making visualizations of the clades of all phylo factors.

Used by phylo_factor_clade_colors(), see there for details.

See also
phylogenetic_factorization()

Definition at line 154 of file phylo_factor_colors.hpp.

Public Attributes

utils::Color base_edges = utils::Color( 0.8, 0.8, 0.8 )
 Color for the edges towards the root of the first phylo factor. More...
 
std::vector< utils::Colorclade_colors = utils::color_list_set1()
 Colors for the sets of edges away from the root that have been split by the phylo factors. More...
 
utils::Color factor_edges = utils::Color( 0.0, 0.0, 0.0 )
 Color for the "winning" edges of phylo factors. More...
 

Member Data Documentation

◆ base_edges

utils::Color base_edges = utils::Color( 0.8, 0.8, 0.8 )

Color for the edges towards the root of the first phylo factor.

Default is a light gray. This color is used for the primary part (towards the root) of the first factor. As phylo_factor_clade_colors() only colorizes the secondar (away from the root) splits of each factor, this color can be considered the color for the "remaining" part of the tree.

Definition at line 171 of file phylo_factor_colors.hpp.

◆ clade_colors

std::vector<utils::Color> clade_colors = utils::color_list_set1()

Colors for the sets of edges away from the root that have been split by the phylo factors.

That is, each factor gets a color of this list.

Definition at line 179 of file phylo_factor_colors.hpp.

◆ factor_edges

utils::Color factor_edges = utils::Color( 0.0, 0.0, 0.0 )

Color for the "winning" edges of phylo factors.

Default is black.

Definition at line 161 of file phylo_factor_colors.hpp.


The documentation for this struct was generated from the following file: