plotPathOnTree: Build the image object of the whole tree with the path...

Description Usage Arguments See Also Examples

Description

This function requires a path and the ig object, and plots the entire tree with the path highlighted. The image will correctly position the node labels with x-axis representing the node year, and y-axis representing the node path index. Light grey edges between two nodes represent parent-child relationships between those nodes. To enhance the visual understanding of how the path-of-interest fits into the entire graph structure, the nodes within the path are labelled in boldface, and connected with light-green boldfaced edges.

Usage

1
plotPathOnTree(path, tree, ig, binVector = sample(1:12, 12))

Arguments

path

path as returned from getPath() or a vector of two variety names which exist in ig

tree

the data tree (in data frame format)

ig

the graph representation of the data tree (in igraph format)

binVector

vector of numbers between 1 and length(binVector), each repeated exactly once

See Also

http://www.r-project.org for iGraph information

getPath for information on input path building

Examples

1
2
3
4
5
6
data(sbTree)
ig = treeToIG(sbTree)
path = getPath("Brim","Bedford",ig,sbTree)
binVector=sample(1:12, 12)
plotTotalImage <- plotPathOnTree(path=path, tree=sbTree, ig=ig, binVector=sample(1:12, 12))
plotTotalImage

dicook/phyViz documentation built on May 15, 2019, 8:24 a.m.