Description Usage Arguments See Also Examples
Interactive heatmaps with a shiny app
1 |
ht_list |
A |
app |
Path of app.R. |
https://jokergoo.shinyapps.io/interactive_complexHeatmap/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | # use a random heatmap
if(interactive()) {
ht_shiny()
}
# by providing a heatmap/heatmap list
if(interactive()) {
m = matrix(rnorm(100), 10)
rownames(m) = 1:10
colnames(m) = 1:10
ht = Heatmap(m)
ht_shiny(ht)
}
if(interactive()) {
m1 = matrix(rnorm(100), 10)
rownames(m1) = 1:10
colnames(m1) = 1:10
ht1 = Heatmap(m1, row_km = 2, column_km = 2)
m2 = matrix(sample(letters[1:10], 100, replace = TRUE), 10)
ht2 = Heatmap(m2)
ht_shiny(ht1 + ht2)
ht_shiny(ht1 %v% ht2)
}
|
Loading required package: grid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.