TimStats commited on
Commit
7f6f7da
·
verified ·
1 Parent(s): cf76b1f

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +11 -3
app.R CHANGED
@@ -395,7 +395,15 @@ break_plot_tot <- function(game, data1, sdate, edate) {
395
  }
396
  ui <- fluidPage(
397
  # Application title
398
- titlePanel("2020-2024 MLB Pitch Plots"),
 
 
 
 
 
 
 
 
399
 
400
  sidebarLayout(
401
  sidebarPanel(
@@ -403,8 +411,8 @@ ui <- fluidPage(
403
  selectInput("player", "Select Player:", choices = unique(data1$`Pitcher Name`),
404
  width = "100%"),
405
  dateRangeInput("date1", "Dates: (Be wary of multi year plots as arm angles may vary over years)",
406
- start = "2024-03-20",
407
- end = "2024-10-01",
408
  width = "100%"),
409
  radioButtons("type", "Plot Type",
410
  choices = c("Season Average","All Pitches")),
 
395
  }
396
  ui <- fluidPage(
397
  # Application title
398
+
399
+ tags$head(
400
+ tags$style(HTML("
401
+ #Plot {
402
+ background-color: #333333; /* Light gray background */
403
+ }
404
+ "))
405
+ ),
406
+ titlePanel("2020-2025 MLB Pitch Plots"),
407
 
408
  sidebarLayout(
409
  sidebarPanel(
 
411
  selectInput("player", "Select Player:", choices = unique(data1$`Pitcher Name`),
412
  width = "100%"),
413
  dateRangeInput("date1", "Dates: (Be wary of multi year plots as arm angles may vary over years)",
414
+ start = "2025-03-18",
415
+ end = Sys.date(),
416
  width = "100%"),
417
  radioButtons("type", "Plot Type",
418
  choices = c("Season Average","All Pitches")),