-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
88 lines (77 loc) · 1.96 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
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
source("R/analysis_selector_module.R")
source("R/significance_calculator_module.R")
source("R/ui_elements_helper.R")
packagename = "VizInf"
landing_page <- {
tabPanel(title = "Menu",
div(
intro_text(),
analysis_selection_ui("main_page"),
class="main-page-container") #close container
) #close "Menu" tabPanel tab
}
analyze_page <- {
tabPanel("Analyze",
conditionalPanel(
condition = "!output.analysis_selected",
h2("Choose an analysis to get started"),
analysis_selection_ui("analysis_page")
),
conditionalPanel(
condition = "output.analysis_selected",
sidebarLayout(
sidebarPanel(
uiOutput("dataChooser"),
uiOutput("inputColumns"),
uiOutput("n_plots"),
uiOutput("plotSettings"),
uiOutput("submitSetup"),
uiOutput("saveSetup"),
textOutput("debug")
),
mainPanel(
uiOutput("instructionBar"),
plotOutput("outputPane"),
uiOutput("enterVote"),
uiOutput("submitVote"),
uiOutput("explanationSection"),
uiOutput("gotoSignificance")
)
),
uiOutput("documentationUI")
)
) #close "Analyze" tab
}
learn_page <- {
tabPanel("Learn",
div(p("Topic Explanations"))
) #close "Learn" tab
}
walkthrough_page <- {
tabPanel("Walkthrough",
uiOutput("walkthroughText")
)
}
calculate_page <- {
tabPanel("Calculate",
significance_calculator_ui("significance")
) #close "Calculate" tab
}
shinyUI(fluidPage(
theme = "style.css",
navbarPage(title = packagename, id = packagename, selected = 'Menu',
landing_page,
analyze_page,
walkthrough_page,
calculate_page
),
))