Skip to content

Instantly share code, notes, and snippets.

@Lauler
Created December 16, 2015 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lauler/77bb08130327386ebb43 to your computer and use it in GitHub Desktop.
Save Lauler/77bb08130327386ebb43 to your computer and use it in GitHub Desktop.
cstrike <- read.csv("CSrandom2.csv")
csgo <- read.csv("CSgopolar.csv")
p <- ggplot(data = cstrike, aes(x = x, y = y)) +
stat_binhex(aes(fill = ..density.. * 100), bins = 8) +
scale_fill_gradientn(colours=c("Gray97","Firebrick3"),
name = "Percentage of shots") +
theme_set(theme_bw(base_size = 20)) +
theme(axis.title.y = element_text(angle = 0, hjust = 0)) +
ggtitle("Distribution of shots in CS 1.6's spread box")
p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment