R/to_widget.R
to_widget.Rd
Function to convert link{Iheatmap-class} object to widget object
link{Iheatmap-class}
# S4 method for class 'Iheatmap' to_widget(p)
Iheatmap-class object to convert
Iheatmap-class
htmlwidgets object
iheatmap, main_heatmap
iheatmap
main_heatmap
Alicia Schep
mat <- matrix(rnorm(24), nrow = 6) hm <- iheatmap(mat) %>% to_widget() class(hm) #> [1] "iheatmapr" "htmlwidget" # Print heatmap if interactive session if (interactive()) hm