Learn R Programming

ggenealogy (version 0.2.0)

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

Description

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

Usage

plotDegMatrix(varieties, ig, geneal, xLab = "Variety", yLab = "Variety", legendLab = "Degree")

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

See Also

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

Examples

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

Run the code above in your browser using DataLab