Help - Old:Set line colors by node/branch data

From TreeGraph help
ArticleOnOlderVersion.png This article describes this feature for TreeGraph 2.0.22 or (not necessaryly all) earlier versions. See here for the article on the latest version and a list on other available article versions.


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

The dialog

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

You can access the Set line colors by node/branch data-dialog by selecting "Set line colors by node/branch data" from the format menu.

Source

You can specify the type of node/branch data that contains the source values for the line colors here. (Selected data columns cannot contain string values.)

Minimum / Maximum

This two buttons open a dialog where you can select a color. The branch node with the minimal numeric value in the selected branch/node data column 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 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 nodes and branches which have no according node/branch data in the selected data column. If you check the "Set undefined nodes to minimal color"-option all branches which have no node/branch data assigned will get the specified minimal branch color. Otherwise their current color will remain unchanged.

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