plotVariableMatrix | R Documentation |
Returns the image object to show the heat map of dates between the inputted set of vertices
plotVariableMatrix(
varieties,
geneal,
colName,
xLab = "Variety",
yLab = "Variety",
legendLab = "Difference in variable"
)
varieties |
subset of varieties used to generate the heat map |
geneal |
the full genealogy (in data frame format) |
colName |
the name of the column of the data frame that contains the quantitative variable of interest (in character string format) |
xLab |
string label on the x axis (default is "Variety") |
yLab |
string label on the y axis (default is "Variety") |
legendLab |
string label on the legend (default is "Degree") |
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")}
data(sbGeneal)
varieties <- c("Bedford", "Calland", "Narow", "Pella", "Tokyo", "Young", "Zane")
p <- plotVariableMatrix(varieties, sbGeneal, "devYear", "Variety", "Variety", "Difference")
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.