getDegree {ggenealogy} | R Documentation |
Determine the degree between two varieties
Description
Returns the degree (distance between unweighted edges) between two varieties, where an edge represents a parent-child relationship
Usage
getDegree(v1, v2, ig, geneal)
Arguments
v1 |
the label of the first vertex of interest (in character string format) |
v2 |
the label of the second vertex of interest (in character string format) |
ig |
the graph representation of the data genealogy (in igraph format) |
geneal |
the full genealogy (in data frame 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. doi:10.18637/jss.v089.i13
Examples
data(sbGeneal)
ig <- dfToIG(sbGeneal)
getDegree("Brim", "Bedford", ig, sbGeneal)
[Package ggenealogy version 1.0.3 Index]