add_col_dendro | R Documentation |
Adds column dendrogram to iheatmap object
## S4 method for signature '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"
)
p |
iheatmap object |
dendro |
hclust object |
reorder |
reorder rows based on dendrogram order? |
side |
side of plot on which to add dendro |
size |
relative size of dendrogram (relative to the main heatmap) |
buffer |
amount of space to leave empty before this plot, relative to size of first heatmap |
xname |
internal name of xaxis |
yname |
internal name of yaxis |
sname |
internal name of shape |
Iheatmap-class
object, which can be printed to generate
an interactive graphic
Alicia Schep
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.