答案 0 :(得分:1)
我有两个解决方案:
(1)我可以建议您使用project.getPluginManager().apply(CustomPlugin.class);
中的gauge
,它不是一个酒吧但是为了您的目的可以很好..
示例应用
flexdashboard package
(2)此功能可帮助您创建栏(取自github)
示例应用
library(shiny)
library(shinydashboard)
library(flexdashboard)
ui <- basicPage(flexdashboard::gaugeOutput("plt1"))
server <- shinyServer(function(input, output, session) {
output$plt1 <- flexdashboard::renderGauge({
gauge(15399, min = 0, max = 20000, symbol = '$', label = paste("Test Label"),gaugeSectors(
success = c(15000,20000), warning = c(15000,1000), danger = c(0, 1000)))
})
})
shinyApp(ui = ui, server = server)