-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
76 lines (71 loc) · 3.64 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
#Pima diabetes data
library(shiny)
library(rCharts)
shinyUI(
navbarPage("Diabetes Data Exploring and Analysis",
tabPanel("Explore Data",
sidebarPanel(width = 3,
wellPanel(
uiOutput("predictors")
),
wellPanel(
checkboxInput('selectAllPredictors', 'Select All Predictors')
),
wellPanel(
radioButtons(
"cleanFlag",
"Use Data:",
c("Clean" = "clean", "Raw" = "raw")),
helpText("Values of some variables that are 0 will be set to NaN.
These as blood glucose, diastolic pressure, triceps thickness,
body mass index, insulin level (may be in Type I diabetes)
Check the last row in the summary for number of \"NA\" observations.")
)
),
mainPanel(
tabsetPanel(
tabPanel(p(icon("table"), "Data"),
tags$style(type='text/css', '#dataSummary {background-color: rgba(255,255,255,0.10); color: blue; font-size: 10px;}'),
verbatimTextOutput("dataSummary"),
dataTableOutput(outputId="dataTable")
),#Data#1of3
tabPanel(p(icon("line-chart"), "Prepare"),
plotOutput("pairsPlot", width="85%", height="600px")
),#Plots#2of3
tabPanel(p(icon("?"), "Prediction"),
wellPanel(
radioButtons(
"learning",
inline=TRUE,
width="100%",
"Model:",
c("Logistic Regression" = "logistic", "Random Forrest (not yet)" = "rf"))
),
column(width = 4,
wellPanel(
helpText("Selected Predictor(s) Values"),
uiOutput("predict"),
uiOutput("pregnant"),
uiOutput("glucose"),
uiOutput("diastolic"),
uiOutput("triceps"),
uiOutput("insulin"),
uiOutput("bmi"),
uiOutput("diabetes"),
uiOutput("age")
)
),
fluidRow(
uiOutput("predictFlow")
)
)#Prediction#3of3
) #tabsetPanel
)#mainPanel
),#tabPanel#1
tabPanel("About",
mainPanel(
includeMarkdown("about.Rmd")
)
)#tabPanel#2
)
)