TimStats commited on
Commit
00452ef
·
verified ·
1 Parent(s): da664f2

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +6 -4
app.R CHANGED
@@ -24,11 +24,11 @@ ui <- fluidPage(
24
  width = 4,
25
  radioButtons("phand", "Hand", choices = c("R", "L"), inline = TRUE),
26
  numericInput("velo", "Velocity (mph)", value = 95, min = 70, max = 110, step = 1),
27
- numericInput("ivb", "Induced Vertical Break (in)", value = 16, min = -30, max = 30, step = 0.1),
28
  numericInput("hb", "Horizontal Break (in.) (Pitcher's Perspective)", value = 6, min = -25, max = 25, step = 0.1),
29
  numericInput("spinrate", "Spin Rate (rpm)", value = 2300, min = 1000, max = 3500, step = 10),
30
  numericInput("ext", "Extension (ft)", value = 6.3, min = 5, max = 8, step = 0.1),
31
- numericInput("spinaxisdiff", "Spin Axis Difference (°)", value = 0, min = -180, max = 180, step = 1),
32
  numericInput("x0", "Horizontal Release Point (ft) (Catcher's Perspective)", value = -1.5, min = -5, max = 5, step = 0.1),
33
  numericInput("z0", "Vertical Release Point (ft)", value = 5, min = 3, max = 8, step = 0.1),
34
  #numericInput("primvelo", "Average Velocity of Primary Pitch", value = 95, min = 70, max = 110, step = 1),
@@ -40,7 +40,8 @@ ui <- fluidPage(
40
  "Horizontal Break" = "HB",
41
  "Spin Rate" = "spin_rate",
42
  "Extension" = "EAA",
43
- "Spin Axis Difference" = "SADiff"))
 
44
  ),
45
 
46
  mainPanel(
@@ -85,7 +86,8 @@ server <- function(input, output) {
85
  HB = c(-20, 20),
86
  spin_rate = c(1000, 3500),
87
  EAA = c(5/6.3, 8/6.3),
88
- SADiff = c(-180, 180)
 
89
  )
90
  ranges[[input$feature_to_vary]]
91
  })
 
24
  width = 4,
25
  radioButtons("phand", "Hand", choices = c("R", "L"), inline = TRUE),
26
  numericInput("velo", "Velocity (mph)", value = 95, min = 70, max = 110, step = 1),
27
+ numericInput("ivb", "Induced Vertical Break (in.) (Pitcher's Perspective)", value = 16, min = -30, max = 30, step = 0.1),
28
  numericInput("hb", "Horizontal Break (in.) (Pitcher's Perspective)", value = 6, min = -25, max = 25, step = 0.1),
29
  numericInput("spinrate", "Spin Rate (rpm)", value = 2300, min = 1000, max = 3500, step = 10),
30
  numericInput("ext", "Extension (ft)", value = 6.3, min = 5, max = 8, step = 0.1),
31
+ numericInput("spinaxisdiff", "Spin Axis Difference (°) (Spin Axis - Inferred Spin Axis)", value = 0, min = -180, max = 180, step = 1),
32
  numericInput("x0", "Horizontal Release Point (ft) (Catcher's Perspective)", value = -1.5, min = -5, max = 5, step = 0.1),
33
  numericInput("z0", "Vertical Release Point (ft)", value = 5, min = 3, max = 8, step = 0.1),
34
  #numericInput("primvelo", "Average Velocity of Primary Pitch", value = 95, min = 70, max = 110, step = 1),
 
40
  "Horizontal Break" = "HB",
41
  "Spin Rate" = "spin_rate",
42
  "Extension" = "EAA",
43
+ "Spin Axis Difference" = "SADiff",
44
+ "Horz. Release Point" = "x0"))
45
  ),
46
 
47
  mainPanel(
 
86
  HB = c(-20, 20),
87
  spin_rate = c(1000, 3500),
88
  EAA = c(5/6.3, 8/6.3),
89
+ SADiff = c(-180, 180),
90
+ x0 = c(-4,4)
91
  )
92
  ranges[[input$feature_to_vary]]
93
  })