---
title: "HW02-P1 Adv Data Viz"
---

## Instructions

Using `ggplot2` and other tools in R, recreate the original New York Times graphic to the greatest extent possible. Try to get as close as possible to the figure below:

![](https://hash-mac.github.io/stat212site-f25/images/hw1_goal.png){width=600, fig-align="center"}

You will need to use reference pages and documentation to discover necessary tools. For example, you may want to Google search "ggplot multiple plots". When looking through results, check publication dates and use newer references. Some helpful resources could include R documentation, Stack Overflow, and [R cheatsheets](https://rstudio.github.io/cheatsheets/).


**Requirements**

- Temperature graph
    - Bands for the record, normal, and actual highs and lows are shown in the correct colors.
    - Downward triangles point to the record high temperatures above the red band.
    - Text displays the record high temperatures above the triangles.
    - X-axis label: 3-letter month abbreviations appear in the middle of each month.
    - Y-axis label: Tick marks at 0, 40, 80, and 120 only.
    - Vertical lines separate the months.
    - Title of "Temperature" is included.
- Precipitation
    - Tan area and blue line reflecting the monthly cumulative precipitation is included.
    - Text (number) for cumulative precipitation for each month is included at the end of each month just above the blue line.
    - Downward triangles point to the record precipitation days.
    - Vertical lines separate the months.
    - Title of "Precipitation" is included.
- Overall
    - Both the temperature and precipitation graphs are in one figure.
    - The temperature plot takes up more vertical space than the precipitation plot.
    - The title "SFO weather in 2011" is present.
- Resource reflection
    - At least 1 resource is listed
    - At least 3 sentences about resources and their helpfulness in the task

**Bonus:** If you'd like further practice, recreate the legend in the temperature graph that shows how the colored lines relate to record, normal, and actual highs.


## Setup

```{r}
# Code for loading packages and reading in data
```



## Visualization

```{r}
# Code for recreating the visualization
# Use as many code chunks as you need to organize your work well
```

## Resources Reflection (required)

List the resources you used to help with this assignment then write 3-5 sentence reflection on which resources were most helpful in finishing this task.

**Resources:**

-
-
-

**Reflection:**


