Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

部署到shinyapps.io热力图不显示 #57

Open
pizifan opened this issue Dec 22, 2021 · 0 comments
Open

部署到shinyapps.io热力图不显示 #57

pizifan opened this issue Dec 22, 2021 · 0 comments

Comments

@pizifan
Copy link

pizifan commented Dec 22, 2021

尝试将热力图部署到shinyapps.io中,热力图不能显示,并有警告:

20211222170110

本地可以正常运行,代码如下:
library(REmap)
library(shiny)

UI <- fluidPage(

titlePanel("热力图展示"),

navlistPanel(
"用户热力图",
tabPanel("用户热力分布图",REmapOutput("remapp")),

widths = c(2, 8)

)
)

server <- function(input, output) {

output$remapp <-renderREmap({

procvice <- mapNames('china')
datas <- runif(34,0,1000)

df <- data.frame(procvice,datas)

options(remap.js.web=T)

remapC(df,
title ="布热力图",
subtitle = paste("车商总数:",sum(df$datas),sep=' '),
maptype = "china",
color = "red",
theme = get_theme("Sky"),
maxdata = 800,
mindata = 0)
})
}

shinyApp(ui = UI, server = server )

排除网络原因,该如何顺利完成部署到shinyapps.io中?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant