Trying to create a ui.r file for plotting a logistic regression with the following features:
尝试创建ui。r文件用于绘制逻辑回归,具有以下特点:
selecting inputs (y-variable: breakdown, x-variables: Temperature, Humidity, Hours) and variable range slider.
选择输入(y变量:故障,x变量:温度,湿度,小时)和可变范围滑块。
I got the following error: Error in tag("div", list(...)) : argument is missing, with no default
我得到了以下错误:标记中的错误(“div”,list(…)):参数丢失,没有默认值。
require(shiny)
shinyUI(pageWithSidebar(
headerPanel("Home Automation Data Model - TV"),
sidebarPanel(
wellPanel(
selectInput(
inputId = "x_var",
label = "X variable",
choices = c(
"Temperature (Celcius)" = "Temp",
"Humidity (Percentage)" = "Hum",
"Hours" = "Hrs"
),
selected = "Temperature"
),
uiOutput("x_range_slider")
),
wellPanel(
selectInput(
inputId = "y_var",
label = "Y variable",
choices = c("Breakdowns (Yes/No)" = "y"),
),
uiOutput("y_range_slider")
),
wellPanel(
p(strong("Model predictions")),
checkboxInput(inputId = "mod_logistic", label = "Logistic (dot-dash)"),
conditionalPanel(
condition = "input.mod_loess == true",
sliderInput(
inputId = "mod_loess_span",
label = "Smoothing (alpha)",
min = 0.15,
max = 1,
step = 0.05,
value = 0.75
)
)
)
),
mainPanel(
plotOutput(outputId = "main_plot"),
conditionalPanel(
"input.mod_logistic == true",
p(strong("Logit model")),
verbatimTextOutput(outputId = "mod_logistic_text")
),
)
))
Error in tag("div", list(...)):argument is missing, with no default
标签上的错误(“div”,list(…)):参数丢失,没有默认值。
1 个解决方案
#1
19
Delete the last comma in your ui.R file. It's expecting an argument after the comma.
删除ui中的最后一个逗号。R文件。它期望在逗号后面有一个参数。
#1
19
Delete the last comma in your ui.R file. It's expecting an argument after the comma.
删除ui中的最后一个逗号。R文件。它期望在逗号后面有一个参数。