Polishing Charts
Due: Nov 01 by 11:59pm
Weight: This assignment is worth 1% of your final grade.
Purpose: The purpose of this assignment is to learn some techniques for adding “polish” to your charts. We will start choosing colors and fonts more carefully, and we will also annotate our charts with informative text.
Assessment: This assignment is graded using a check system:
- ✔+ (110%): Responses shows phenomenal thought and engagement with the course content. I will not assign these often.
- ✔ (100%): Responses are thoughtful, well-written, and show engagement with the course content. This is the expected level of performance.
- ✔− (50%): Responses are hastily composed, too short, and/or only cursorily engages with the course content. This grade signals that you need to improve next time. I will hopefully not assign these often.
Notice that this is essentially a pass/fail system. I’m not grading your writing ability and I’m not counting the number of words you write - I’m looking for thoughtful engagement. One or two sentences is not enough. Write at least a paragraph and show me that you did the readings assigned.
1. Get Organized
Download and edit this template when working through this assignment.
Then unzip the template folder (make sure you unzip it!), then open the .Rproj file to open RStudio. Open the hw9.Rmd
file, take notes, and write some example code as you go through the following.
2. Readings
This week we’ll get into the weeds with techniques for polishing up your charts. This is a critically important step for making your charts easy for others to understand and effective as a central tool for communicating important results. It’s also where you can be highly creative!
- How to polish ggplot charts: R4DS Chapter 28 - Graphics for communication
- Wilke: 4 - Color scales
- Rost: Which color scale to use when visualizing data
Optional
- Wilke: 21 - Multi-panel figures
- Check out the patchwork package for merging multiple charts together
- How to make a multi-panel figure with a shared legend.
- Check out this tool for simulating color blindness.
- Check out these tools for customizing your Rmd file: PIMP my Rmd
3. Practice polishing
Go back to a previous homework where you made a chart (e.g. hw6). Using some of the principles in the readings you just read, try to make a more polished version of your figure.
3. Reflect
Reflect on what you’ve learned while going through these readings and exercises. Is there anything that jumped out at you? Anything you found particularly interesting or confusing? Write at least a paragraph in your hw9.Rmd
file. Here are some suggestions:
- Discuss some of the key insights or things you found interesting in the readings or recent class periods.
- Write about the messiest data you’ve seen.
- Connect the course content to your own work or project you’re working on.
Do you have a favorite font / color / color palette? Share it in your reflection this week!
4. Knit
Click the “knit” button to compile your hw9.Rmd
file into a html web page. Then open the hw9.html
file in a web browser and proofread your report. Does all of the formatting look correct?
5. Submit
To submit this assignment, create a zip file of all the files in your R project folder for this assignment. Name the zip file hw9-netID.zip
, replacing netID
with your netID (e.g., hw9-jph.zip
). Then copy that zip file into the “submissions” folder in your Box folder created for this class.
:::