Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Shiny 错误:缺少参数,没有默认值_Shiny_Correlation - Fatal编程技术网

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上,如果您正确设置代码格式,它将显示为这样。编辑器中有一个按钮。你的没有完全格式化。