plotAncDes: Returns the image object to show the ancestors and...

Description Usage Arguments Examples

Description

Returns the image object to show the ancestors and descendants of a variety, with the variety highlighted, if desired

Usage

1
plotAncDes(v1, tree, mAnc = 3, mDes = 3, vColor = "#D35C79")

Arguments

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

Examples

1
2
3
data(sbTree)
plotAncDes("Essex", sbTree, 2, 3, "blue") + ggplot2::labs(x="Generation index",y="")
plotAncDes("Tokyo", sbTree, vColor="red")

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