Description Usage Arguments See Also Examples
Returns the image object to show the heat map of degrees between the inputted set of vertices
1 2 | plotDegMatrix(varieties, ig, tree, xLab = "Variety", yLab = "Variety",
legendLab = "Degree")
|
varieties |
subset of varieties used to generate the heat map |
ig |
the graph representation of the data tree (in igraph format) |
tree |
the data tree (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") |
http://www.r-project.org for iGraph information
1 2 3 4 5 | data(sbTree)
ig = treeToIG(sbTree)
varieties=c("Bedford", "Calland", "Narow", "Pella", "Tokyo", "Young", "Zane")
p = plotDegMatrix(varieties, ig, sbTree, "Soybean label", "Soybean label", "Degree")
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.