igroffman commited on
Commit
4cb9a05
·
verified ·
1 Parent(s): 9c5e63a

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +5 -3
app.R CHANGED
@@ -3096,9 +3096,11 @@ create_location_by_result_plot <- function(data, player_name, batter_side, pitch
3096
  ggtitle(paste0("Pitch Locations vs ", batter_side, "HB")) +
3097
  theme_void() +
3098
  theme(
3099
- plot.title = element_text(size = 12, face = "bold", hjust = 0.5),
3100
- legend.position = "none",
3101
- strip.text = element_text(size = 9, face = "bold"),
 
 
3102
  strip.placement = "outside"
3103
  )
3104
  }
 
3096
  ggtitle(paste0("Pitch Locations vs ", batter_side, "HB")) +
3097
  theme_void() +
3098
  theme(
3099
+ plot.title = element_text(size = 12, face = "bold", hjust = 0.5),
3100
+ legend.position = "bottom",
3101
+ legend.title = element_text(size = 9, face = "bold"),
3102
+ legend.text = element_text(size = 8),
3103
+ strip.text = element_text(size = 9, face = "bold"),
3104
  strip.placement = "outside"
3105
  )
3106
  }