Spaces:
Runtime error
Runtime error
Update app.R
Browse files
app.R
CHANGED
|
@@ -441,7 +441,7 @@ server <- function(input, output,session) {
|
|
| 441 |
current_data <- apply_percentile_calcs(data %>% select(-BIP)) %>%
|
| 442 |
filter(`Batter.Name` == input$player) %>%
|
| 443 |
mutate(metric = factor(metric, levels = c(
|
| 444 |
-
"wOBA", "wOBACON", "xwOBA", "
|
| 445 |
"Avg EV", "EV90", "Max EV",
|
| 446 |
"stdev(LA)", "Barrel%",
|
| 447 |
"Z-Con%", "Z-Swing%", "O-Con%",
|
|
@@ -554,7 +554,7 @@ server <- function(input, output,session) {
|
|
| 554 |
padding = unit(c(20, 20, 20, 20), "points") # top, right, bottom, left margins
|
| 555 |
)
|
| 556 |
)
|
| 557 |
-
}, height =
|
| 558 |
}
|
| 559 |
|
| 560 |
# Run the app
|
|
|
|
| 441 |
current_data <- apply_percentile_calcs(data %>% select(-BIP)) %>%
|
| 442 |
filter(`Batter.Name` == input$player) %>%
|
| 443 |
mutate(metric = factor(metric, levels = c(
|
| 444 |
+
"wOBA", "wOBACON", "xwOBA", "xDamage",
|
| 445 |
"Avg EV", "EV90", "Max EV",
|
| 446 |
"stdev(LA)", "Barrel%",
|
| 447 |
"Z-Con%", "Z-Swing%", "O-Con%",
|
|
|
|
| 554 |
padding = unit(c(20, 20, 20, 20), "points") # top, right, bottom, left margins
|
| 555 |
)
|
| 556 |
)
|
| 557 |
+
}, height = 800, width = 800)
|
| 558 |
}
|
| 559 |
|
| 560 |
# Run the app
|