DaveM2430 commited on
Commit
153a5e3
·
verified ·
1 Parent(s): c88820c

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +5 -4
app.R CHANGED
@@ -751,8 +751,6 @@ make_color_ramp <- function(values, low, high, flip = FALSE,
751
  formatStyle("ERA", backgroundColor = styleEqual(dt$ERA, col_era)) %>%
752
  formatStyle("FIP", backgroundColor = styleEqual(dt$FIP, col_fip)) %>%
753
  formatStyle("WHIP", backgroundColor = styleEqual(dt$WHIP, col_whip)) %>%
754
- formatStyle("wOBA", backgroundColor = styleEqual(dt$wOBA, col_woba)) %>%
755
- formatStyle("xwOBA", backgroundColor = styleEqual(dt$xwOBA, col_xwoba)) %>%
756
  formatStyle(
757
  c("AVG","OBP","SLG","wOBA","xwOBA","BB%","K%","Swing%","Contact%","IZ Whiff%",
758
  "Chase%","Hard Hit%","Avg EV","GB%","FB%","LD%","PA","Height","Weight"),
@@ -826,9 +824,12 @@ make_color_ramp <- function(values, low, high, flip = FALSE,
826
  formatStyle("GB%", backgroundColor = styleEqual(dt$`GB%`, col_gb)) %>%
827
  formatStyle("FB%", backgroundColor = styleEqual(dt$`FB%`, col_fb)) %>%
828
  formatStyle("LD%", backgroundColor = styleEqual(dt$`LD%`, col_ld)) %>%
 
 
829
  formatStyle(
830
- c("AVG","OBP","SLG","BB%","K%","Swing%","Contact%","IZ Whiff%",
831
- "Chase%","Hard Hit%","Avg EV","GB%","FB%","LD%","PA","Height","Weight"),
 
832
  fontWeight = "bold"
833
  ) %>%
834
  formatStyle("Portal",
 
751
  formatStyle("ERA", backgroundColor = styleEqual(dt$ERA, col_era)) %>%
752
  formatStyle("FIP", backgroundColor = styleEqual(dt$FIP, col_fip)) %>%
753
  formatStyle("WHIP", backgroundColor = styleEqual(dt$WHIP, col_whip)) %>%
 
 
754
  formatStyle(
755
  c("AVG","OBP","SLG","wOBA","xwOBA","BB%","K%","Swing%","Contact%","IZ Whiff%",
756
  "Chase%","Hard Hit%","Avg EV","GB%","FB%","LD%","PA","Height","Weight"),
 
824
  formatStyle("GB%", backgroundColor = styleEqual(dt$`GB%`, col_gb)) %>%
825
  formatStyle("FB%", backgroundColor = styleEqual(dt$`FB%`, col_fb)) %>%
826
  formatStyle("LD%", backgroundColor = styleEqual(dt$`LD%`, col_ld)) %>%
827
+ formatStyle("wOBA", backgroundColor = styleEqual(dt$wOBA, col_woba)) %>%
828
+ formatStyle("xwOBA", backgroundColor = styleEqual(dt$xwOBA, col_xwoba)) %>%
829
  formatStyle(
830
+ c("FB Velo","Zone%","Strike%","K/BB","Whiff%","Chase%","Hard Hit%",
831
+ "GB%","FB%","LD%","Stuff+","Location+","ERA","FIP","WHIP",
832
+ "Pitches","Height","Weight"),
833
  fontWeight = "bold"
834
  ) %>%
835
  formatStyle("Portal",