-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.r
executable file
·58 lines (51 loc) · 1.76 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
#!/usr/bin/RScript
shinyUI(fluidPage(
tags$head(tags$script(src="./explanation.js")),
headerPanel("Clinical Trial Simulator"),
fluidRow(
column(3, actionButton("run_simulation", "Start Simulation")),
column(3, actionButton("reset", "Clear"))
),
br(),
fluidRow(
column(12, tags$pre("Description of variables.", id="explanationText"))
),
br(),
fluidRow(
column(12, plotOutput("densities"))
),
fluidRow(
tags$div(
id="explanationPatients",
onmouseover="explanationPatients()", onmouseout="offExplanation()",
column(3, numericInput("n_patients", "Patients", 500, step=25))
),
tags$div(
id="explanationBaseline",
onmouseover="explanationBaseline()", onmouseout="offExplanation()",
column(3, numericInput("e0", "Baseline", 0, step=2))
),
tags$div(
id="explanationED50",
onmouseover="explanationED50()", onmouseout="offExplanation()",
column(3, numericInput("ed50", "ED_50", 4, step=10))
),
tags$div(
id="explanationEmax",
onmouseover="explanationEmax()", onmouseout="offExplanation()",
column(3, numericInput("emax", "E_max", 10, step=1))
)
),
fluidRow(
tags$div(
id="explanationDose",
onmouseover="explanationDose()", onmouseout="offExplanation()",
column(3, numericInput("d1", "Dose 1", 0, step=5)),
column(3, numericInput("d2", "Dose 2", 5, step=10)),
column(3, numericInput("d3", "Dose 3", 10, step=20)),
column(3, numericInput("d4", "Dose 4", 40, step=10))
)
),
br(),
p("Developed by M. Hediger")
))