TimStats commited on
Commit
a89f087
·
verified ·
1 Parent(s): 04b6376

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +6 -6
app.R CHANGED
@@ -31,9 +31,9 @@ ui <- fluidPage(
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),
35
- numericInput("primIVB", "Average IVB of Primary Pitch", value = 16, min = -30, max = 30, step = 0.1),
36
- numericInput("primHB", "Average HB of Primary Pitch", value = 6, min = -25, max = 25, step = 0.1),
37
  selectInput("feature_to_vary", "Select Feature to Vary:",
38
  choices = c("Velocity" = "start_speed",
39
  "Induced Vertical Break" = "IVB",
@@ -66,9 +66,9 @@ server <- function(input, output) {
66
  z0 = input$z0,
67
  spin_rate = input$spinrate,
68
  SADiff = input$spinaxisdiff,
69
- primary_speed = input$primvelo - input$velo,
70
- primary_IVB = input$primIVB - input$ivb,
71
- primary_HB = input$primHB - input$hb
72
  )
73
  })
74
 
 
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),
35
+ #numericInput("primIVB", "Average IVB of Primary Pitch", value = 16, min = -30, max = 30, step = 0.1),
36
+ #numericInput("primHB", "Average HB of Primary Pitch", value = 6, min = -25, max = 25, step = 0.1),
37
  selectInput("feature_to_vary", "Select Feature to Vary:",
38
  choices = c("Velocity" = "start_speed",
39
  "Induced Vertical Break" = "IVB",
 
66
  z0 = input$z0,
67
  spin_rate = input$spinrate,
68
  SADiff = input$spinaxisdiff,
69
+ #primary_speed = input$primvelo - input$velo,
70
+ #primary_IVB = input$primIVB - input$ivb,
71
+ #primary_HB = input$primHB - input$hb
72
  )
73
  })
74