Learning Objectives
HW #3 will have you focus on making more progress towards completing your final assignment (HW #4). As a reminder, your final assignment is meant to combine all of the course learning outcomes(!):
- identify which types of visualizations are most appropriate for your data and your audience
- prepare (e.g. clean, explore, wrangle) data so that its appropriately formatted for building data visualizations
- build effective, responsible, accessible, and aesthetically-pleasing visualizations using the R programming language, and specifically
{ggplot2}
+ ggplot2 extension packages - write code from scratch and read and adapt code written by others
- apply a DEI (Diversity, Equity & Inclusion) lens to the process of designing data visualizations
- assess, critique, and provide constructive feedback on data visualizations
Description
Please begin by reviewing HW #4 in full to refamiliarize yourself with the expectations for your final submission at the end of the quarter – you’ll again be making some incremental steps towards your final deliverables here in HW #3.
For HW #3, you must answer / complete the following:
- If you choose option 1, you should have one overarching question and at least three sub-questions that each of your infographic components answer.
- If you choose option 2, you should have one question that each of your three visualizations works to answer, where each visualization is meant to reach / serve a different target audience and purpose.
- If you chose option 3, you should refer back to your approved proposal to determine how many questions you should list.
For example, let’s say I’m interested in how Lyme disease incidence is changing over time for states X, Y and Z. An appropriate explanation of variables might look something like this:
“I have two data sets, one containing population estimates by state from the
{tidycensus}
package, and another from the CDC containing lyme disease case counts by county and year. After wrangling / joining these data sets, I was able to calculate disease incidence as cases per 100k people at the state level. Doing so provides me with three variables to visualize: time (years), disease incidence (cases per 100k people), and state.”
It lists tons of really wonderful websites, tutorials, and links to the repos / websites of some seriously incredible data viz creators. This is an excellent place to start when looking for inspiration.
-
- a sketch of your infographic (which should include at least three component visualizations) if you are pursuing option 1
- a sketch of all three separate visualizations if you are pursuing option 2
- a sketch of the approved number of visualizations, as outlined in your proposal, if you are pursuing option 3
.qmd
file
There are a number of ways to render an image in .qmd
file. Two ways I find easiest are:
- Using
knitr::include_graphics()
in a code chunk. Here are the chunk options I often specify:
```{r}
#| eval: true
#| echo: false
#| fig-align: "center"
#| out-width: "100%"
#| fig-alt: "Alt text here"
knitr::include_graphics("path/to/image")
```
- Using Markdown syntax:
![](file/path/to/image){fig-alt="Alt text goes here"}
Here is a minimal example of a hand-drawn plot – you don’t need to be an artist, but your vision (and handwriting) should be clear:
Rubric (specifications)
You must complete the following, as detailed below, to receive a “Satisfactory” mark for Assignment #3:
lastName-eds240-HW4
repo, not in GitHub Classroom:
See details below.
---
# ~ additional YAML options omitted for brevity ~
:
format:
html-resources: true
embed---
- Your plots don’t have to be perfect but the message you want to convey should be clear
- The more progress you make now, the more feedback we can provide ahead of HW #4
- There are no strict length requirements for the free-response questions above, however we expect that you answer them thoughtfully and fully
- Low-effort responses and plots will result in a “Not Yet” mark