-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
22 lines (21 loc) · 1.01 KB
/
ui.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
library(shiny)
library(shinydashboard)
library(shinycssloaders)
dashboardPage(
dashboardHeader(title = "Market Basket Analysis", disable = TRUE),
dashboardSidebar(
tags$style(HTML(".main-sidebar li a { font-size: 18px; }")),
menuItem("Market Basket Analysis", tabName = "Market Basket Analysis", icon = icon("dashboard")),
sliderInput("conf", "Confidence", 0.01, 0.9, 0.3),
sliderInput("supp", "Support", 0.00001, 0.0001, 0.00005),
checkboxInput("rr", "Remove Redundant Rules", FALSE),
uiOutput("productSelector"),
actionButton("refreshButton", "Generate Recommendations", width = "88%")
),
dashboardBody(tabsetPanel(
tabPanel("Rules Table", withSpinner(DT::dataTableOutput("rules_table"))),
tabPanel("Scattered Graph", withSpinner(plotOutput("graph_scattered"))),
tabPanel("Network Graph", withSpinner(plotOutput("graph_network"))),
tabPanel("Raw Data", withSpinner(DT::dataTableOutput("data")))
))
)