Shiny 错误:缺少参数,没有默认值
我试图创建一个应用程序来计算相关系数,但显示了错误消息。有人能帮我吗?Shiny 错误:缺少参数,没有默认值,shiny,correlation,Shiny,Correlation,我试图创建一个应用程序来计算相关系数,但显示了错误消息。有人能帮我吗? require(shiny) F1<-c(1,3,15,-2,7,-18) F2<-c(10,12,0,-3,5,-105) shinyUI(pageWithSidebar( headerPanel("Determination of Correlation Coefficient"), sidebarPanel( wellPanel( selectInput(inputId = "x
require(shiny)
F1<-c(1,3,15,-2,7,-18)
F2<-c(10,12,0,-3,5,-105)
shinyUI(pageWithSidebar(
headerPanel("Determination of Correlation Coefficient"),
sidebarPanel(
wellPanel(
selectInput(inputId = "x_var",
label = "X variable",
choices = c("F1" = "F1", "F2" = "F2"),
selected = "F1"
)),
wellPanel(
selectInput(inputId = "y_var",
label = "Y variable",
choices = c("F1" = "F1","F2"="F2" ),
selected = "F2"
)),
mainPanel(
tabsetPanel(
tabPanel("Plot", plotOutput("plot")),
tabPanel("Summary", verbatimTextOutput("summary")),
)
)
)
)
)
require(闪亮)
F1请正确修复您的代码,您的一半代码没有显示为实际代码谢谢您的关注。对不起,我不明白。如何显示“实际代码”?在stackoverflow上,如果您正确设置代码格式,它将显示为这样。编辑器中有一个按钮。你的没有完全格式化。