Advertisement
Guest User

Untitled

a guest
May 30th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. ggplot(shots_df, aes(x=location_y-25,y=location_x,z=made_flag)) +
  2. stat_summary_hex(fun = mean, alpha = 0.8, bins = 30) +
  3. scale_fill_gradientn(colors = my_colors(7), labels=percent_format(), name="Percent Made")
  4.  
  5. ggplot(shots_df, aes(x=location_y-25,y=location_x,z=made_flag)) +
  6. stat_summary_hex(fun = mean, alpha = 0.8, bins = 30) +
  7. scale_fill_gradientn(colors = my_colors(7), labels=percent_format(), name="Percent Made") +
  8. geom_path(data = court_points, aes(x = x, y = y, group = desc, linetype = dash),
  9. color = "#000004") +
  10. scale_linetype_manual(values = c("solid", "longdash"), guide = FALSE) +
  11. coord_fixed(ylim = c(0, 35), xlim = c(-25, 25)) +
  12. theme_court(base_size = 22)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement