plotDegMatrix: Returns the image object to show the heat map of degrees...

Description Usage Arguments References See Also Examples

View source: R/allFunctions.R

Description

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

Usage

1
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. doi: 10.18637/jss.v089.i13

See Also

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

Examples

1
2
3
4
5
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")

ggenealogy documentation built on March 26, 2020, 9:25 p.m.