Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ggplot(shots_df, aes(x=location_y-25,y=location_x,z=made_flag)) +
- stat_summary_hex(fun = mean, alpha = 0.8, bins = 30) +
- scale_fill_gradientn(colors = my_colors(7), labels=percent_format(), name="Percent Made")
- ggplot(shots_df, aes(x=location_y-25,y=location_x,z=made_flag)) +
- stat_summary_hex(fun = mean, alpha = 0.8, bins = 30) +
- scale_fill_gradientn(colors = my_colors(7), labels=percent_format(), name="Percent Made") +
- geom_path(data = court_points, aes(x = x, y = y, group = desc, linetype = dash),
- color = "#000004") +
- scale_linetype_manual(values = c("solid", "longdash"), guide = FALSE) +
- coord_fixed(ylim = c(0, 35), xlim = c(-25, 25)) +
- theme_court(base_size = 22)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement