Last active
August 29, 2015 14:01
-
-
Save JoFrhwld/456c6b1e2a424f6f0db2 to your computer and use it in GitHub Desktop.
This is either awesome or perverse.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
libarary(plyr) | |
library(dplyr) | |
library(ggplot2) | |
baseball %>% | |
group_by(year)%>% | |
summarise(r=sum(r)) %>% | |
ggplot(., aes(year, r)) + | |
geom_point() | |
# at least this doesn't work | |
# baseball %>% | |
# group_by(year, lg)%>% | |
# summarise(r=sum(r)) %>% | |
# ggplot(. %>% | |
# summarise(r = sum(r)), aes(year, r)) + | |
# geom_point() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment