Learn R Programming

ggenealogy (version 1.0.3)

buildAncDesTotalDF: Returns data frame with plot coordinates of all ancestors and descendants of a variety.

Description

Returns the data frame that includes labels and plot coordinates of all ancestors and descendants of a variety. Users can specify the maximum number of ancestors and descendants to display.

Usage

buildAncDesTotalDF(v1, geneal, mAnc = 3, mDes = 3)

Arguments

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)

References

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. tools:::Rd_expr_doi("10.18637/jss.v089.i13")

See Also

buildAncList for information on determining ancestors

buildDesList for information on determining descendants

Examples

Run this code
data(sbGeneal)
v1 <- "Essex"
buildAncDesTotalDF(v1, sbGeneal)

Run the code above in your browser using DataLab