ggenealogy (version 1.0.3)

plotDegMatrix: Returns the image object to show the heat map of degrees between the inputted set of vertices

Description

Returns the image object to show the heat map of degrees between the inputted set of vertices

Usage

plotDegMatrix(varieties, ig, geneal)

Arguments

varieties

subset of varieties used to generate the heat map

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

See Also

https://www.r-project.org for iGraph information

Examples

Run this code
data(sbGeneal)
ig <- dfToIG(sbGeneal)
varieties <- c("Bedford", "Calland", "Narow", "Pella", "Tokyo", "Young", "Zane")
p <- plotDegMatrix(varieties, ig, sbGeneal)
p + ggplot2::scale_fill_continuous(low = "white", high = "darkgreen")

Run the code above in your browser using DataLab