stat405
Homework 2
Due in class, Wednesday 9 Sep.
Create three plots that reveal something interesting about the baseball project data.
The formatting requirements for this weeks homework are more formal:
- Your report should be written in Latex. If you haven't used latex before, use the sample template to get started.
- Include an appendix that contains all of the code necessary to reproduce the graphics. That is, I should be able to copy and paste the code into R and it will just work on my computer. The code should be formatted according to the style guide, paying close attention to the grading schedule below.
You do not need to show the process by which you reached each plot. However, I would encourage you to include the code for some plots that were informative, but didn't make the final cut.
Grading
This assignment will be graded out of 15 according to the homework rubric. One point will be deducted for each of the following style violations:
- Incorrect spacing around commas, parentheses, operators or comments.
- Lines that are wider than 80 columns so that they are either wrapped inappropriately, or cut off by the side of the page.
- Failure to include descriptive comments which tell me what you are trying to achieve (not how you are achieving it).
- If you create new variables, using names that do not accurately express the content of the variable.
Note that you can lose 4 out of a total of 15 points from style violations. Be careful! I emphasise these points because they are so important for the long term maintainbility of your code, and because the more easily I can understand your code, the better the grade you will get.
Sample solutions
PDFs: a, b.