Created
September 30, 2015 14:21
-
-
Save mdlincoln/75817abcd63c51c5871c to your computer and use it in GitHub Desktop.
ggplot2 scale that displays the months of the year for data that has only the day of the year as an integer
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
yday_months_x <- scale_x_discrete(breaks = cumsum(c(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31)), labels = month.name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment