Description Usage Arguments Examples
Returns the image object to show the ancestors and descendants of a variety, with the variety highlighted, if desired
1 | plotAncDes(v1, tree, mAnc = 3, mDes = 3, vColor = "#D35C79")
|
v1 |
the label of the variety/vertex of interest (in character string format) |
tree |
the data tree (in data frame format) |
mAnc |
the maximum number of generations of ancestors of v1 to be displayed (in numeric format) |
mDes |
the maximum number of generations of descendants of v1 to be displayed (in numeric format) |
vColor |
the color of the text of the main variety |
1 2 3 | data(sbTree)
plotAncDes("Essex", sbTree, 2, 3, "blue") + ggplot2::labs(x="Generation index",y="")
plotAncDes("Tokyo", sbTree, vColor="red")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.