-
Notifications
You must be signed in to change notification settings - Fork 12
/
ui.R
85 lines (67 loc) · 3.72 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
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
shinyUI(navbarPage("",
tabPanel("Classifier",
# Application title
titlePanel("Classification of Heart Disease w/KNN"),
# Sidebar with a slider input for number of bins
sidebarLayout(
sidebarPanel(
sliderInput("k",
"number of neighbors",
min = 1,
max = 20,
value = 5),
checkboxGroupInput("checkGroup", label = h3("Dataset Features"),
choices = feature.list, inline = F,
selected = names(feature.list))
),
# Display KNN results
mainPanel(
dataTableOutput('confusionMatrix'),
verbatimTextOutput("value"),
includeMarkdown("ShinyAppDescription.Rmd")
)
)
),
tabPanel("Visualize Features",
fluidRow(
column(4, selectInput("featureDisplay_x",
label = h3("X-Axis Feature"),
choices = feature.list,
selected = feature.list[1])),
column(4, selectInput("featureDisplay_y",
label = h3("Y-Axis Feature"),
choices = feature.list,
selected = feature.list[2]))
),
fluidRow(
column(4,
graphOutput("distPlotA")
),
column(4,
graphOutput("distPlotB")
),
column(4,
graphOutput("ScatterPlot")
)
)
),
tabPanel("Feature Descriptions",
fluidRow(
column(10,
includeMarkdown("include.Rmd")
)
)
),
tabPanel("References",
fluidRow(
column(10,
includeMarkdown("references.Rmd")
)
)
)
))