Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ht_shiny

Interactive heatmaps with a shiny app


Description

Interactive heatmaps with a shiny app

Usage

ht_shiny(ht_list, app = NULL)

Arguments

ht_list

A Heatmap-class or a HeatmapList-class object. If it is not specified, a random heatmap is used.

app

Path of app.R.

See Also

Examples

# 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)
}

ComplexHeatmap

Make Complex Heatmaps

v2.6.2
MIT + file LICENSE
Authors
Zuguang Gu
Initial release
2020-11-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.