-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathui.R
48 lines (43 loc) · 1.29 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
# ------------------------
# Author: Nicolas Durrande
# ------------------------
library(shiny)
# Define UI for miles per gallon application
shinyUI(pageWithSidebar(
# Application title
headerPanel("Catapult simulator"),
sidebarPanel(
sliderInput("Fact1",
"x1: rotation axis",
min = 0,
max = 1,
value = 0.5,
step = 0.01),
sliderInput("Fact2",
"x2: arm stop",
min = 0,
max = 1,
value = .5,
step = 0.01),
sliderInput("Fact3",
"x3: spring binding 1",
min = 0,
max = 1,
value = .5,
step = 0.01),
sliderInput("Fact4",
"x4: spring binding 2",
min = 0,
max = 1,
value = .5,
step = 0.01),
radioButtons("wind", "Wind", list(None=0,Breesy=1,Windy=5), selected = 1),
actionButton("action", "Action!", icon = NULL)
),
mainPanel(
tabsetPanel(type = "tabs",
tabPanel("Settings", plotOutput("catapultPlot")),
tabPanel("Trajectory", plotOutput("trajectoryPlot"))
)#,textOutput("text1")
)
))