Last active
May 3, 2019 07:38
-
-
Save akshat3096/c70c53543ad3c40c2a57a7337e2246fe to your computer and use it in GitHub Desktop.
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
df %>% | |
filter(type == 'HKQuantityTypeIdentifierDistanceWalkingRunning') %>% | |
group_by(year,month) %>% | |
summarize(distance=sum(value)) %>% | |
print (n=100) %>% | |
ggplot(aes(x=month, y=distance, fill=year)) + | |
geom_bar(position='dodge', stat='identity') + | |
scale_y_continuous(labels = scales::comma) + | |
theme(panel.grid.major = element_blank()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment