Description Usage Arguments See Also Examples
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.
1 | plotPathOnTree(path, tree, ig, binVector = sample(1:12, 12))
|
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 |
http://www.r-project.org for iGraph information
getPath
for information on input path
building
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.