Help - Set colors by node/branch data

From TreeGraph help

TreeGraph allows to display node/branch data as line- and text-colors. You can choose any node/branch data column which contains numeric values as source.

ArticleOnLatestVersion.png This article describes this feature for the latest version of TreeGraph 2. For older versions the following articles are available:
Set line colors by node/branch data (until 2.0.22)


The dialog

The "Set colors by node/branch data"-dialog

You can access the Set colors by node/branch data-dialog by selecting "Set colors by node/branch data" from the format menu. Note that this function is only available if your document contains at least one node/branch data column with numeric values.

Source

You can specify the type of node/branch data that contains the source values that determine the colors here. If the selected column contains numeric and textual values the textual values are treated like undefined (empty) lines.

Color

Minimum / Maximum

This two buttons open a dialog where you can select a color. Elements associated with node/branch data lines with the minimal numeric value will get the color selected for Minimum (this is not necessarily 0) whereas the branch and node with the maximal numeric value will get the selected color for Maximum. All other nodes and branches will get a color in between according to their assigned values. Between the two buttons the dialog shows a preview of the color gradient between the two selected colors.

Set undefined nodes to minimal color

Furthermore you can define what shall happen to elements which have no according node/branch data in the selected data column. If you check the "Set undefined nodes to minimal color"-option all elements which have no node/branch data assigned will get the specified minimal color. Otherwise their current color will remain unchanged.

Set parent color to terminals

If you check this option all terminal elements (e.g. terminal nodes or labels on branches to terminal nodes) will adopt the color of their parent element. If a defined source value exists for a terminal element this value is used to calculate the color no matter if this option is checked or not.

This option is useful if terminals do not have defined values in the selected source node/branch data column (e.g. if the source data are topological support values).

Target

In this list you can select which elements shall get a new line- or text-color. Besides the color formats of nodes and branches this list contains the text colors of all label-groups contained in the document.

Example

The following example shows a tree that displays evolutionary rates by its line colors, branch widths and text labels. Of course you could also use this three ways to display different kinds of data in one tree. (You can download the TreeGraph 2 source file here.)

Ratogram.png

See also