Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/81.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
闪亮的R-应用程序的排列_R_Shiny_Rstudio - Fatal编程技术网

闪亮的R-应用程序的排列

闪亮的R-应用程序的排列,r,shiny,rstudio,R,Shiny,Rstudio,我正在努力使用Shiny for R Studio来安排我的应用程序 我的ui文件 library(shiny) shinyUI(fluidPage( titlePanel("stockVis"), verticalLayout( sidebarPanel( helpText("Choose a stock ticker to examine, For example: ^HSI - Hang Seng, ^N225 - Nik

我正在努力使用Shiny for R Studio来安排我的应用程序

我的ui文件

library(shiny)

shinyUI(fluidPage(
  titlePanel("stockVis"),

  verticalLayout(
    sidebarPanel(

      helpText("Choose a stock ticker to examine, For example:
        ^HSI - Hang Seng, 
        ^N225 - Nikkei 225, 
        ^FTSE - FTSE 100, 
        Information will be collected from yahoo finance."),

      textInput("symb", "Symbol", "^FTSE"),

      dateRangeInput("dates", 
        "Date range",
        start = "2015-01-01", 
        end = as.character(Sys.Date())),

      submitButton("Analysis")), 



    fluidRow(
      column(6,plotOutput("plot")),column(6,plotOutput("ret.graph")),
      column(4,plotOutput("qq.plot")),column(4,plotOutput("histogram")),column(4,plotOutput("qq.line"))
    )    



  )
))
该应用程序如下所示

但是,在右上角的空白区域中,我希望有一个表,因此我调整ui文件如下

library(shiny)

shinyUI(fluidPage(
  titlePanel("stockVis"),

  verticalLayout(
    sidebarPanel(

      helpText("Choose a stock ticker to examine, For example:
        ^HSI - Hang Seng, 
        ^N225 - Nikkei 225, 
        ^FTSE - FTSE 100, 
        Information will be collected from yahoo finance."),

      textInput("symb", "Symbol", "^FTSE"),

      dateRangeInput("dates", 
        "Date range",
        start = "2015-01-01", 
        end = as.character(Sys.Date())),

      submitButton("Analysis")), 



    fluidRow(column(12,tableOutput("table"))
      column(6,plotOutput("plot")),column(6,plotOutput("ret.graph")),
      column(4,plotOutput("qq.plot")),column(4,plotOutput("histogram")),column(4,plotOutput("qq.line"))
    )    



  )
))
与以前的ui相比,唯一的变化是在fluidRow行中添加了列(12,tableOutput(“table”))。然而,这会导致以下结果


已添加表,但不在正确的空间中。我也尝试过使用主面板功能,但似乎无法将桌子放在右上角。任何帮助都将不胜感激!谢谢。

您可能需要根据。对
fluidRow
s进行子集设置,或者在每行列周围环绕一个
fluidRow