-
-
Save hcozart/1265d961a481661adeb4b587a60ef236 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
filter(NYC_Death2, Cause.of.Death %in% TOP)%>% | |
ggplot(data = ., aes(x= Year,y=Count)) + | |
geom_bar(aes(fill = reorder(Cause.of.Death,Count)), position ="dodge", | |
stat = "identity") + | |
ggtitle("Top Ten Causes of Death by Year") + | |
ylab(label = "Deaths" )+ | |
scale_fill_discrete(name = "Cause of Death") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment