View source: R/heatmap_motif_clustering.R
heatmap_motif_clustering | R Documentation |
Plot the result of hierarchical clustering of motifs
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") )
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(). |
ComplexHeatmap object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.