相关疑难解决方法(0)

如何在R/Shiny中构建反应式数据框?

我想使用反应数据框来显示多个图和图.我有一个我希望能够过滤的数据集.我找到了正确的过滤器设置,我想在多个不同的图上显示数据 - 如果更改过滤器设置,将会更新.

这可以解释一下,我正在尝试做什么:

用户界面:

fluidPage(
  sidebarLayout(
    sidebarPanel(

      checkboxGroupInput("checkGroups", 
                         label = "Include", choices = list("1 star" = 1, "2 star" = 2,
                                                           "3 star" = 3, "4 star" = 4,
                                                           "5 star" = 5),
                         selected = list(1, 2, 3, 4, 5)),

      checkboxInput("checkbox", "Include Replies"),

      actionButton("Button", "Update")

    ),
    mainPanel(

      showOutput("plot", "nvd3"),

      showOutput("pieplot", "nvd3")

    )
  )
)
Run Code Online (Sandbox Code Playgroud)

服务器:

rating <- c(2, 3, 5, 4, 1, 5, 3, 1, 4)
date_time <- c("2015-05-14", "2015-05-07", "2015-05-06", "2015-04-11", "2015-01-07", "2014-12-06", "2014-04-11", "2014-01-07", "2013-12-06")
repliesOnly <- …
Run Code Online (Sandbox Code Playgroud)

r dataframe shiny

10
推荐指数
2
解决办法
2万
查看次数

标签 统计

dataframe ×1

r ×1

shiny ×1