首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在ShinyApp中过滤结果

在ShinyApp中过滤结果
EN

Stack Overflow用户
提问于 2017-12-06 19:26:39
回答 0查看 81关注 0票数 1

我有一个闪亮的应用程序Item Correlation,它获得了几个产品之间的相关性。我只想得到大于零的值,而不删除排序后的结果。这是我的服务器代码:

代码语言:javascript
复制
server <- function(input,output){
  data<- reactive({
    input$Item
  })
  output$Itemcorr <- renderTable({
    DF %>% filter(FirstItem == data())  %>% arrange(desc(X.Correlation))
  })

  output$plot <- renderPlot({
    barplot(subset(DF$X.Correlation, DF$FirstItem == data()),main="X.Correlation Distribution", 
            xlab="SecondItems",ylab="Percent",xlim=c(1,60),ylim = c(0,100), col=c("darkblue","red"),names.arg =subset(DF$SecondItem, DF$FirstItem == data())
    )
  })
EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47673191

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档