plotAncDes | R Documentation |
Returns the image object to show the ancestors and descendants of a variety, with the variety highlighted, if desired
plotAncDes(v1, geneal, mAnc = 3, mDes = 3, vColor = "#D35C79")
v1 |
the label of the vertex of interest (in character string format) |
geneal |
the full genealogy (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 |
Rutter L, VanderPlas S, Cook D, Graham MA (2019). ggenealogy: An R Package for Visualizing Genealogical Data. Journal of Statistical Software, 89(13), 1–31. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v089.i13")}
data(sbGeneal)
plotAncDes("Tokyo", sbGeneal, vColor = "red")
plotAncDes("Essex", sbGeneal, 2, 3, "blue") + ggplot2::labs(x = "Generation index", y = "")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.