Description Usage Arguments References Examples
This function returns a list of the ancestors of the inputted variety within and including a given number of generations
1 | getAncestors(v1, geneal, gen = 3)
|
v1 |
the label of the vertex of interest (in character string format) |
geneal |
the full genealogy (in data frame format) |
gen |
the number of generations back to include as ancestors |
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
1 2 3 4 | data(sbGeneal)
getParent("Essex", sbGeneal)
getAncestors("Essex", sbGeneal, 1)
getAncestors("Essex", sbGeneal, 5)
|
[1] "Lee" "S55-7075"
label gen
2 Lee 1
1 S55-7075 1
label gen
14 Lee 1
13 S55-7075 1
12 CNS 2
11 S 100 2
10 N48-1248 2
9 Perry 2
8 Clemson 3
7 Illini 3
6 N45-745 x (Ogden x CNS) 3
5 Roanoke 3
4 A.K. 4
3 Ogden x CNS 4
2 CNS 5
1 Ogden 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.