Learn R Programming

ggenealogy (version 0.2.0)

plotYearMatrix: Returns the image object to show the heat map of years between the inputted set of vertices

Description

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

Usage

plotYearMatrix(varieties, geneal, xLab = "Variety", yLab = "Variety", legendLab = "Difference in years")

Arguments

varieties
subset of varieties used to generate the heat map
geneal
the full genealogy (in data frame 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")

Examples

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

Run the code above in your browser using DataLab