首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何通过shinyheatmaply部署交互式热图

如何通过shinyheatmaply部署交互式热图
EN

Stack Overflow用户
提问于 2019-06-12 19:28:51
回答 2查看 1.4K关注 0票数 3

我正在尝试将交互式热图部署为闪亮的应用程序,但不是简单的交互式热图,而是shinyheatmaply的花哨热图,但当我运行部署应用程序时,什么也不会发生

这是我的ui

library(shiny)
library(heatmaply)
library(shinyHeatmaply)
data(mtcars)
shinyUI(fluidPage(
    titlePanel("Interactive heatmap"),
    fluidRow(plotlyOutput("heatmap"))
))

这是我的服务器

library(shiny)
library(heatmaply)
library(shinyHeatmaply)
data(mtcars)
shinyServer(function(input,output) {
    output$heatmap <- if(interactive()){
data(mtcars)
launch_heatmaply(mtcars)
}

    })

通过运行

rsconnect::deployApp("/Users/temporal.UOS-12599/Desktop/New folder") 

他说

DONE
Uploading bundle for application: 977528...DONE
Deploying bundle: 2147989 for application: 977528 ...
Waiting for task: 621761993
  building: Parsing manifest
  building: Building image: 2264908
  building: Installing system dependencies
  building: Fetching packages
  building: Installing packages
  building: Installing files
  building: Pushing image: 2264908
  deploying: Starting instances
  rollforward: Activating new instances
  terminating: Stopping old instances
Application successfully deployed to https://fi1d18.shinyapps.io/new_folder/

但最后什么也没发生

编辑过的

这是要在已部署应用程序中显示的数据

> head(sample_013)
       Driver snv_t_013 snv_o_013 indel_t_013 indel_o_013 Deleted_ot_013 Deleted_o_013
ABCB1       1         0         1           0           0              0             0
ACVR1B      1         0         0           0           0              0             0
ACVR2A      1         0         0           0           0              0             0
APC         1         1         1           0           0              0             0
ARID1A      1         0         0           1           1              1             0
ARID1B      1         1         1           1           1              1             1

有什么需要帮忙的吗?

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56561144

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档