heatmap_motif_clustering: Plot the result of hierarchical clustering of motifs

View source: R/heatmap_motif_clustering.R

heatmap_motif_clusteringR Documentation

Plot the result of hierarchical clustering of motifs

Description

Plot the result of hierarchical clustering of motifs

Usage

heatmap_motif_clustering(
  input_matrix,
  hclust_out,
  cutree_out,
  motifset,
  colors = c("purple", "white", "orange"),
  color_range = c(-2, 0, 2),
  scale_name = " ",
  panel_size = grid::unit(0.75, "cm"),
  panel_gap = grid::unit(0.9, "cm"),
  panel_width = grid::unit(4, "cm"),
  panel_link_width = grid::unit(0.6, "cm")
)

Arguments

input_matrix

Numerical matrix with motif names as row names and sample names as column names.

hclust_out

result from hclust() of the motifs

cutree_out

result from cutree()

motifset

Universalmotif object

colors

Character vector of colors for the gradient.

color_range

Numerical vector that represents the values the number correspond to. Must be of the same length as colors.

scale_name

Title of the gradient scale legend.

panel_size

Size of the panel in ggplot::grid::unit().

panel_gap

Gap of the panel in ggplot::grid::unit().

panel_width

Width of the panel in ggplot::grid::unit().

panel_link_width

Link width of the panel in ggplot::grid::unit().

Value

ComplexHeatmap object


TedCCLeung/PhotoperiodMotif documentation built on April 27, 2022, 9:01 p.m.