Created
September 8, 2020 12:14
-
-
Save narath/c256b212fcee1cc957760898e84be381 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# It is better to use date_trunc which is supported in Postgresql | |
volume.experiences %>% | |
mutate(monthyear = date_trunc("month",date_of_experience)) %>% | |
group_by(monthyear) %>% | |
summarize(count=sum(count)) %>% | |
ggplot(aes(x=monthyear, y = as.integer(count))) + | |
geom_area(fill="lightblue", color="black") + | |
labs(x = "Date", y = "# of experiences") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment