dendro | R Documentation |
Makes a dendrogram aligned to a chosen edge of the plot area. This function is useful for making a dendrogram to align next to a heatmap. It is used in the heat_map
function.
dendro(
clust,
edge = c("bottom", "left", "top", "right"),
plot_margin = sapply(c("top", "right", "bottom", "left"), function(x) ifelse(x ==
edge, 0, 5.5)),
size = 0.5
)
clust |
An |
edge |
The edge of the plot window to which to align the dendrogram, possible values being |
plot_margin |
A numeric vector of margin sizes in pts, in the order top, right, bottom, left. Default: 0 for |
size |
The weight of the lines. |
A ggplot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.