| plot_ggdendro | R Documentation |
use ggplot to make customized dendrogram. following https://atrebas.github.io/post/2019-06-08-lightweight-dendrograms/
plot_ggdendro(
hcdata,
metadata,
direction = c("lr", "rl", "tb", "bt"),
fan = FALSE,
branch.size = 1,
label.size = 3,
label.category = NULL,
nudge.label = 0.01,
expand.y = 0.5,
category = NULL,
id = "sampleID"
)
hcdata |
dendrogram data |
metadata |
dataframe containing metadata used to annotate dendrogram |
direction |
direction of level tob-bottom ('tb'), bottom-top ('bt'), left-right ('lr'), right-left ('rl') |
fan |
fan the dendrogram |
branch.size |
branch size |
label.size |
label size |
label.category |
colour label by |
nudge.label |
nudge label spacing |
expand.y |
expand y axis limit to this value |
category |
colour dendrogram leaves by |
id |
variable to label dendrogram by |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.