powered by
Adds row dendrogram to iheatmap object
# S4 method for Iheatmap,hclust add_row_dendro( p, dendro, reorder = TRUE, side = c("left", "right"), size = 0.15, buffer = 0.005, xname = NULL, yname = current_yaxis(p), sname = "row_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 dendrogram
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 shapes
Alicia Schep
add_row_clustering, iheatmap, add_col_dendro
add_row_clustering
iheatmap
add_col_dendro
mat <- matrix(rnorm(20), ncol = 5, nrow = 4) dend <- hclust(dist(mat)) hm <- iheatmap(mat) %>% add_row_dendro(dend) # Print heatmap if interactive session if (interactive()) hm
Run the code above in your browser using DataLab