plotVariableMatrix: Returns the image object to show the heat map of dates...

View source: R/allFunctions.R

plotVariableMatrixR Documentation

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

Description

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

Usage

plotVariableMatrix(
  varieties,
  geneal,
  colName,
  xLab = "Variety",
  yLab = "Variety",
  legendLab = "Difference in variable"
)

Arguments

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")

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. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v089.i13")}

Examples

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")

lrutter/ggenealogy documentation built on Feb. 22, 2024, 8:03 p.m.