-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
54 lines (46 loc) · 1.57 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
shinyUI(pageWithSidebar(
headerPanel('Data distribution Charts'),
sidebarPanel(
div(
#Bar Chart and its options
h3("Bar/Pie Chart options"),
checkboxInput("barChart", "Show BarChart", value = FALSE),
checkboxInput("pieChart", "Show PieChart", value = FALSE),
#column to be displayed
selectInput('oneDimX', 'X-Var', sel, selected=sel[12]),
sliderInput("num", "Number of values", value = 200, min = 0, max = 200, step = 10)
),
div(
#Bubble Chart and its options
h3("Bubble Chart options"),
checkboxInput("bubbleChart", "Show BubbleChart", value = FALSE),
#columnx to be displayed (x and y)
selectInput('twoDimX', 'X-Var', sel, selected=sel[15]),
selectInput('twoDimY', 'Y-Var', sel, selected=sel[16])
)
),
mainPanel(
div(
# main text, to be displayed only when no chart is selected
h3(textOutput("text1")),
div(textOutput("doc1")),
div(textOutput("doc2")),
div(textOutput("doc3")),
div(textOutput("doc4")),
# title of the Bar chart
h3(textOutput("titleBarChart")),
# description of the Bar chart
h4(textOutput("textBarChart")),
# Bar chart
div(htmlOutput('gBarChart')),
# title of the Pie chart
h3(textOutput("titlePieChart")),
# description of the Pie chart
h4(textOutput("textPieChart")),
# Pie chart
div(htmlOutput('gPieChart')),
# Bubble chart
div(htmlOutput('gBubbleChart'))
)
)
))