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函数。试图清除环境仍然出错。
答案 0 :(得分:0)
此错误是因为您min
中缺少max
和sliderInput
个参数。您的sliderInput
应该是这样的:
sliderInput("range",
label = "Number of observations to view:",
value = 10, min = 0, max = 20)
)