【发布时间】:2016-05-03 18:48:08
【问题描述】:
我在 ui.R 中有这段代码:
tabPanel("Experiment 1",sidebarPanel(numericInput("supp", "Vložte hodnotu support", 0.0001, min = 0.0001, max = 0.8, step = 0.0001),
numericInput("conf", "Vložte hodnotu confidence", 0.0001, min = 0.0001, max = 0.8, step = 0.0001)),
和 server.R 中的这段代码:
rules.all <- apriori(d, parameter=list(support=input$supp, confidence=input$conf))
library(arulesViz)
output$scatterPlot = renderPlot(
plot(rules.all, method = 'scatterplot')
)
我有这个错误: 当我更改 numericInput 中的支持和置信度值时,R shiny 没有显示任何散点图。为什么它不起作用? 请帮帮我。
【问题讨论】:
标签: r shiny numeric interactive