DaveM2430 commited on
Commit
17b5eed
·
verified ·
1 Parent(s): 1d40485

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +6 -0
app.R CHANGED
@@ -596,6 +596,12 @@ make_color_ramp <- function(values, low, high, flip = FALSE,
596
  formatStyle("ERA", backgroundColor = styleEqual(dt$ERA, col_era)) %>%
597
  formatStyle("FIP", backgroundColor = styleEqual(dt$FIP, col_fip)) %>%
598
  formatStyle("WHIP", backgroundColor = styleEqual(dt$WHIP, col_whip)) %>%
 
 
 
 
 
 
599
  formatStyle("Portal",
600
  color = styleEqual(c("Yes","No"), c("#00840D","#aaaaaa")),
601
  fontWeight = styleEqual(c("Yes","No"), c("700","400"))
 
596
  formatStyle("ERA", backgroundColor = styleEqual(dt$ERA, col_era)) %>%
597
  formatStyle("FIP", backgroundColor = styleEqual(dt$FIP, col_fip)) %>%
598
  formatStyle("WHIP", backgroundColor = styleEqual(dt$WHIP, col_whip)) %>%
599
+ formatStyle(
600
+ c("FB Velo","Zone%","Strike%","K/BB","Whiff%","Chase%","Hard Hit%",
601
+ "GB%","FB%","LD%","Stuff+","Location+","ERA","FIP","WHIP",
602
+ "Pitches","Height","Weight"),
603
+ fontWeight = "bold"
604
+ ) %>%
605
  formatStyle("Portal",
606
  color = styleEqual(c("Yes","No"), c("#00840D","#aaaaaa")),
607
  fontWeight = styleEqual(c("Yes","No"), c("700","400"))