plotDegMatrix | R Documentation |
Returns the image object to show the heat map of degrees between the inputted set of vertices
plotDegMatrix(varieties, ig, geneal)
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) |
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. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v089.i13")}
https://www.r-project.org for iGraph information
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.