相关疑难解决方法(0)

Shiny:来自Shiny App的flexdashboard的仪表

是否有可能将应用程序(flexdashboard图片如下)嵌入ShinyApp(shinydashboardshiny)中?

在此输入图像描述

Shiny flexdashboard来自flexdashboard 网站的示例代码:

```{r}
renderGauge({
  rate <- computeContactRate(input$region)
  gauge(rate, min = 0, max = 100, symbol = '%', gaugeSectors(
    success = c(80, 100), warning = c(40, 79), danger = c(0, 39)
  ))
})
```
Run Code Online (Sandbox Code Playgroud)

这是我失败的尝试:

library(shiny)
library(shinydashboard)
#library(flexdashboard)


ui <-dashboardPage(
  dashboardHeader(),
  dashboardSidebar(),
  dashboardBody(
    column(6,box(flexdashboard::gaugeOutput("plt1"),width=12,title="Gauge Graph",background ="green"))))

server <- shinyServer(function(input, output, session) {

  output$plt1 <- flexdashboard::renderGauge({
      gauge(56, min = 0, max = 100, symbol = '%', label = paste("Test …
Run Code Online (Sandbox Code Playgroud)

shiny shinydashboard flexdashboard

5
推荐指数
1
解决办法
5250
查看次数

标签 统计

flexdashboard ×1

shiny ×1

shinydashboard ×1