Skip to contents

Function to convert link{Iheatmap-class} object to widget object

Usage

# S4 method for class 'Iheatmap'
to_widget(p)

Arguments

p

Iheatmap-class object to convert

Value

htmlwidgets object

Author

Alicia Schep

Examples


mat <- matrix(rnorm(24), nrow = 6)
hm <- iheatmap(mat) %>% to_widget()
class(hm)
#> [1] "iheatmapr"  "htmlwidget"

# Print heatmap if interactive session 
if (interactive()) hm