jokergoo / InteractiveComplexHeatmap

Make Interactive Complex Heatmaps
https://jokergoo.github.io/InteractiveComplexHeatmap/
Other
126 stars 23 forks source link

is it possible to save the InteractiveComplexHeatmap as a webpage? #70

Closed klai001 closed 3 years ago

klai001 commented 3 years ago

Hi Zuguang

I managed to create a interactive complex heatmap using my data via your InteractiveComplexHeatmap package and i wish to send the created interactive heatmap as part of a manuscript for the reviewers to access;

I would like to send it as a webpage/zip file for users without R and R's IDE to easily access.

Here is my code in the console according to your tutorial i also created a shiny.apps io account; installed rsconnect

heatmap
ht=draw(heatmap)
output=htShiny(ht)

ui = fluidPage(
  InteractiveComplexHeatmapOutput()
)

server = function(input, output, session) {
  makeInteractiveComplexHeatmap(input, output, session, ht)
}

shinyapp<-shiny::shinyApp(ui, server)

May I know how did you create these links? e.g. https://jokergooo.shinyapps.io/interactive_tidyheatmap/

klai001 commented 3 years ago

object heatmap is the object i created using ComplexHeatmap package

jokergoo commented 3 years ago

There are many tutorial from web, e,g, https://towardsdatascience.com/how-to-publish-a-shiny-app-example-with-shinyapps-io-ec6c6604d8

You save the code into a script e.g. app.R, then run the following code:

rsconnect::deployApp('dir-of-app.R", appName = "your-app-name", account = "your-account", server = "shinyapps.io", forceUpdate = TRUE)