plot_ggdendro: plot_ggdendro

View source: R/cms_dendro.R

plot_ggdendroR Documentation

plot_ggdendro

Description

use ggplot to make customized dendrogram. following https://atrebas.github.io/post/2019-06-08-lightweight-dendrograms/

Usage

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

Arguments

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


schyen/OCMSExplorer documentation built on Feb. 15, 2023, 4:39 p.m.