| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Bioinformatics Toolbox |
| Contents | Index |
| Learn more about Bioinformatics Toolbox |
plot(Tree)
plot(Tree, ActiveBranches)
H = plot(...)
plot(..., 'Type', TypeValue,
...)
plot(..., 'Orientation', OrientationValue,
...)
plot(..., 'Rotation', RotationValue,
...)
plot(..., 'BranchLabels', BranchLabelsValue,
...)
plot(..., 'LeafLabels', LeafLabelsValue,
...)
plot(..., 'TerminalLabels', TerminalLabelsValue,
...)
plot(..., 'LLRotation', LLRotationValue,
...)
| Tree | Phylogenetic tree object created, such as created with the phytree constructor function. |
| ActiveBranches | Logical array of size numBranches-by-1 indicating the active branches, which are displayed in the Figure window. |
| TypeValue | String specifying a method for drawing the phylogenetic tree. Choices are:
|
| OrientationValue | String specifying the position of the root node, and hence the orientation of a phylogram or cladogram tree, when the 'Type' property is 'square' or 'angular'. Choices are:
|
| RotationValue | Scalar between 0 (default) and 360 specifying rotation angle (in degrees) of the phylogenetic tree in the Figure window, when the 'Type' property is 'radial', 'equalangle', or 'equaldaylight'. |
| BranchLabelsValue | Controls the display of branch labels next to branch nodes. Choices are true or false (default). |
| LeafLabelsValue | Controls the display of leaf labels next to leaf nodes. Choices are true or false. Default is:
|
| TerminalLabels | Controls the display of terminal labels over the axis tick labels, when the 'Type' property is 'square' or 'angular'. Choices are true (default) or false. |
| LLRotationValue | Controls the rotation of leaf labels so that the text aligns to the root node, when the 'Type' property is 'radial', 'equalangle', or 'equaldaylight'. Choices are true or false (default). |
| H | Structure with handles to seven graph elements. The structure includes the following fields:
|
plot(Tree) draws a phylogenetic tree object into a figure as a phylogram. The significant distances between branches and nodes are in the horizontal direction. Vertical distances are arbitrary and have no significance.
plot(Tree, ActiveBranches) hides the nonactive branches and all of their descendants in the Figure window. ActiveBranches is a logical array of size numBranches-by-1 indicating the active branches.
H = plot(...) returns a structure with handles to seven graph elements.
plot(..., 'Type', TypeValue, ...) specifies a method for rendering the phylogenetic tree. Choices are as follows.
| Rendering Type | Description |
|---|---|
| 'square' (default) |
|
| 'angular' |
|
| 'radial' |
|
| 'equalangle' |
|
| 'equaldaylight' |
|
plot(..., 'Orientation', OrientationValue, ...) specifies the orientation of the root node, and hence the orientation of a phylogram or cladogram phylogenetic tree in the Figure window, when the 'Type' property is 'square' or 'angular'.
plot(..., 'Rotation', RotationValue, ...) specifies the rotation angle (in degrees) of the phylogenetic tree in the Figure window, when the 'Type' property is 'radial', 'equalangle', or 'equaldaylight'. Choices are any scalar between 0 (default) and 360.
plot(..., 'BranchLabels', BranchLabelsValue, ...) hides or displays branch labels next to the branch nodes. Choices are true or false (default).
plot(..., 'LeafLabels', LeafLabelsValue, ...) hides or displays leaf labels next to the leaf nodes. Choices are true or false. Default is:
true — When the 'Type' property is 'radial', 'equalangle', or 'equaldaylight'
false — When the 'Type' property is 'square' or 'angular'
plot(..., 'TerminalLabels', TerminalLabelsValue, ...) hides or displays terminal labels over the axis tick labels, when the 'Type' property is 'square' or 'angular'. Choices are true (default) or false.
plot(..., 'LLRotation', LLRotationValue, ...) controls the rotation of leaf labels so that the text aligns to the root node, when the 'Type' property is 'radial', 'equalangle', or 'equaldaylight'. Choices are true or false (default).
% Create a phytree object from a file
tr = phytreeread('pf00002.tree')
% Plot the tree and return a structure with handles to the
% graphic elements of the phytree object
h = plot(tr,'Type','radial')
% Modify the font size and color of the leaf node labels % by using one of the handles in the return structure set(h.leafNodeLabels,'FontSize',6,'Color',[1 0 0])
Bioinformatics Toolbox functions: phytree (object constructor), phytreeread, phytreetool, seqlinkage, seqneighjoin
Bioinformatics Toolbox object: phytree object
Bioinformatics Toolbox methods of phytree object: cluster, view

See how to analyze, visualize, and model biological data and systems using MathWorks products.
Get free kit| © 1984-2010- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |