English subtitles

← Making Sense of Data - Data Analysis with R

Get Embed Code
5 Languages

Showing Revision 2 created 05/25/2016 by Udacity Robot.

  1. For this question, you need to add a layer to this
  2. plot to make the months be discrete. To do this, we
  3. can add our scale_x_discrete layer. We're going to pass it the parameter
  4. breaks, and set the breaks from zero to 203. Now I'm
  5. going to step every 12 months. Since 12 months is a
  6. year. And you might be wondering how I decided upon 203.
  7. If I type in range mitchell month I can see. The
  8. range of the month variable and it runs from zero to 203.
  9. So this is my lower limit. And my upper limit. We can run this code
  10. and we'd get a little bit of a better plot with our months in discrete units.