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

Update app.R

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