powered by
Adds column dendrogram to iheatmap object
# S4 method for Iheatmap,hclust add_col_dendro( p, dendro, reorder = TRUE, side = c("top", "bottom"), size = 0.15, buffer = 0.005, xname = current_xaxis(p), yname = NULL, sname = "col_dendro" )
Iheatmap-class object, which can be printed to generate an interactive graphic
Iheatmap-class
iheatmap object
hclust object
reorder rows based on dendrogram order?
side of plot on which to add dendro
relative size of dendrogram (relative to the main heatmap)
amount of space to leave empty before this plot, relative to size of first heatmap
internal name of xaxis
internal name of yaxis
internal name of shape
Alicia Schep
add_col_clustering, iheatmap, add_row_dendro
add_col_clustering
iheatmap
add_row_dendro
mat <- matrix(rnorm(20), ncol = 5, nrow = 4) dend <- hclust(dist(t(mat))) hm <- iheatmap(mat) %>% add_col_dendro(dend) # Print heatmap if interactive session if (interactive()) hm
Run the code above in your browser using DataLab