Description Usage Arguments Value Author(s) See Also Examples
Adds annotation heatmaps for one or more qualitative or quantitative annotations for each column of a main heatmap.
1 2 3 4 5 6 7 8 9 10 11 12 |
p |
|
annotation |
data.frame or object that can be converted to data frame |
colors |
list of color palettes, with one color per annotation column name |
side |
side of plot on which to add column annotation |
size |
relative size of each row annotation |
buffer |
relative size of buffer between previous subplot and column annotation |
inner_buffer |
relative size of buffer between each annotation |
layout |
layout properties for new y axis |
show_colorbar |
logical indicator to show or hide colorbar |
Iheatmap-class
object, which can be printed to generate
an interactive graphic
Alicia Schep
iheatmap
, add_row_annotation
,
add_col_signal
, add_col_groups
1 2 3 4 5 6 7 | mat <- matrix(rnorm(24), ncol = 6)
annotation <- data.frame(gender = c(rep("M", 3),rep("F",3)),
age = c(20,34,27,19,23,30))
hm <- iheatmap(mat) %>% add_col_annotation(annotation)
# 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.