Last active
May 3, 2019 07:40
-
-
Save akshat3096/56583becedef9a8a6dc6f940aa403173 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
step_count <- df %>% | |
filter(type == 'HKQuantityTypeIdentifierStepCount') %>% | |
filter(year==2019) %>% | |
group_by(dayofweek,year,month) %>% | |
summarize(step_count=median(value)) | |
plot <- ggplot(step_count,aes(x=month, y=step_count, group=dayofweek)) + | |
geom_line(aes(colour=dayofweek),size=1.5)+ | |
theme_minimal()+ | |
ggtitle("Weekly median stepcount") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment