Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update for R 3.4.1 at scale_x_date #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Morgan-Leon
Copy link

The problem lies in the ggplot function scale_x_date. In the original code this is coded as:

quick.hist <- ggplot(ufo.us, aes(x = DateOccurred)) +
  geom_histogram() + 
  scale_x_date(breaks = "50 years")

The breaks in scale_x_date has been adjusted to date_breaks. If you adjust the code to the following it works.

quick.hist <- ggplot(ufo.us, aes(x = DateOccurred)) +
  geom_histogram() + 
  scale_x_date(date_breaks = "50 years", date_labels = "%Y")

@johnmyleswhite
Copy link
Owner

Thanks for the fix! I'm going to set aside some time to update all of the code soon and will include your fix, but after that I'm going to announce that we don't intend to update this code in the future. (We should have done that originally, but we didn't originally realize what a mistake we were making treating the code as a living artifact.)

@boykasad
Copy link

boykasad commented May 7, 2021

Hello

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants