继承错误(min," Date"):argument" min"缺少,没有默认值

时间:2018-01-16 11:58:22

标签: r shinydashboard

UI.R是

ui <- fluidPage(
titlePanel("PLOTS FOR JCI"),

sidebarLayout(
sidebarPanel(
  helpText("JCI PLOTTING
           information from Chiller Data"),

  selectInput("sel", 
              label = "Choose a variable to display",
              choices = c("WAR-CODE ( States )" , "VSD-CONVHS-T ( 
             degF )", "MANUAL PRV % OPEN ( % )",
                          "WIND SPEED ( mph )","REFPOS-SP ( % )","MOT-
             FLA ( % )",
                          "LL-SV-STS ( offon )","TEMPERATURE ( degF )", 
            "EVAP-P ( psi )",
                          "VSD OP-Hz ( hz )","MANUAL EVAP RETURN 
             PRESSURE ( psi )")),
              selected = "WAR-CODE ( States )"),

             sliderInput("range", 
             label = "Number of observations to view:",
             value = 10)
             ),

             mainPanel(plotOutput("map"))
             )

如果有任何解决方案,请提供帮助。我这里没有使用min函数。试图清除环境仍然出错。

1 个答案:

答案 0 :(得分:0)

此错误是因为您min中缺少maxsliderInput个参数。您的sliderInput应该是这样的:

sliderInput("range", 
                label = "Number of observations to view:",
                value = 10, min = 0, max = 20)
    )