Flexdashboard Gauge not rendering when I publish to shinyapps.io

扶醉桌前 提交于 2019-12-25 01:14:08

问题


This is the code that I am using to render a gauge in flexdashboard with a runtime: shiny :

`renderGauge({
        select <- reactive({
        input$select})
   call_data_f <- pbrCalls_Data %>%
        filter(pbrCalls_Data$village==select())
sum_table <- round(sum(call_data_f$status_match,na.rm = TRUE)/sum(complete.cases(call_data_f$status_match))*100)
gauge(sum_table, min = 0, max = 100, symbol = '%', gaugeSectors(
    success = c(75, 100), warning = c(40, 74), danger = c(0, 39)
  ))
})`

When I knit locally, the gauge appears correctly as shown below:

But after publishing to shinyapps.io, I can only see the 0, the %age and 100, no gauge:

来源:https://stackoverflow.com/questions/39769646/flexdashboard-gauge-not-rendering-when-i-publish-to-shinyapps-io

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!