-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
59 lines (52 loc) · 2.05 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
# 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
#
library(shiny)
shinyUI(fluidPage(
# Application title
titlePanel("Spin Coating Data and Prediction"),
# Sidebar with a slider input for number of bins
sidebarLayout(
sidebarPanel(
conditionalPanel('input.panels === "Fit"',
actionButton("btnReload", "Reload Data"),
helpText(textOutput("txtLastReload"))),
conditionalPanel('input.panels === "Speed"',
selectInput("selConc",
label = "Concentration",
choices = list("0.5 %" = 0.5, "1.0 %" = 1,
"1.5 %" = 1.5, "2.0 %" = 2),
selected = 2),
selectInput("selTime",
label = "Spinning Time",
choices = list("0.5 min" = 0.5, "1.0 min" = 1,
"2.0 min" = 2, "4.0 min" = 4),
selected = 1),
sliderInput("sldHeight",
label = "Desired Height:",
min = 10, max = 200, value = 50)),
conditionalPanel('input.panels === "Histograms"',
uiOutput('target'),
uiOutput('substrate'))
),
# Show a plot of the generated distribution
mainPanel(
mainPanel(
tabsetPanel(
id = 'panels',
tabPanel('Fit',
h4("Summary of fit"),
tableOutput("summary")),
tabPanel('Speed',
h4("RPM Needed for the desired parameters"),
textOutput("txtNeededSpeed")),
tabPanel('Histograms',
textOutput("txtResults"),
plotOutput("histogram"))
)
)
)
)
))