-
Notifications
You must be signed in to change notification settings - Fork 0
/
similarity_pages_output_ui.R
62 lines (60 loc) · 2.02 KB
/
similarity_pages_output_ui.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
sim_page_output_ui<-function(id,df){
ns=NS(id)
tagList(
withSpinner(tagList(DT::dataTableOutput(ns("sel_table")),br(),
DT::dataTableOutput(ns("sim_table"))),
type = 6,
proxy.height = '100px'
),hr(),
tabsetPanel(
tabPanel("Plot", fluidPage(
br(),
dropdown(
tags$h3("List of Inputs"),
pickerInput(
inputId = ns('xcol'),label = 'X Variable',choices = names(df %>% select(-c(seas_id:experience,type))),
options = pickerOptions(liveSearch = TRUE,liveSearchNormalize = TRUE,
size = 5)
),
pickerInput(
inputId = ns('ycol'),label = 'Y Variable',choices = NULL,
options = pickerOptions(liveSearch = TRUE,liveSearchNormalize = TRUE,
size = 5)
),
status = "danger",style = "unite",icon = icon("cog", lib = "glyphicon"),
width = "300px"
),
br(),
withSpinner(plotlyOutput(ns("two_vars_plot")),
type = 6,
proxy.height = '100px'
)
)),
tabPanel("Stats",withSpinner(DT::dataTableOutput(ns("stats_table")),
type = 6,
proxy.height = '100px')),
tabPanel("Grouped Graphs", fluidPage(
br(),
dropdown(
pickerInput(
inputId = ns('group'),label = 'Group',choices = c(
"Availability","Minutes Per Game",
"3-Point Shooting","2-Point Shooting","Free Throw Shooting",
"Passing","Rebounding","Steals, Blocks & Fouls",
"Advanced Cumulative","Advanced Rate",
"Counting Stats Current Yr","Counting Stats Last 3 Yrs",
"All-League Voting"
)
),
status = "danger", style = "unite", icon = icon("cog", lib = "glyphicon"),
width = "300px"
),
br(),
withSpinner(plotlyOutput(ns("group_plots")),
type = 6,
proxy.height = '100px'
)
))
)
)
}