Learning Goals

Learn how to make different type of plots in R

## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr     1.1.4     ✔ readr     2.1.5
## ✔ forcats   1.0.0     ✔ stringr   1.5.1
## ✔ ggplot2   3.5.2     ✔ tibble    3.2.1
## ✔ lubridate 1.9.4     ✔ tidyr     1.3.1
## ✔ purrr     1.0.4     
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag()    masks stats::lag()
## ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
## New names:
##     Date_GS              Close_GS    
##  Min.   :2022-03-28   Min.   :279.8  
##  1st Qu.:2022-12-23   1st Qu.:326.2  
##  Median :2023-09-26   Median :357.4  
##  Mean   :2023-09-25   Mean   :399.3  
##  3rd Qu.:2024-06-26   3rd Qu.:463.7  
##  Max.   :2025-03-27   Max.   :672.2
##     Date_MS              Close_MS     
##  Min.   :2022-03-28   Min.   : 70.40  
##  1st Qu.:2022-12-23   1st Qu.: 84.23  
##  Median :2023-09-26   Median : 88.95  
##  Mean   :2023-09-25   Mean   : 94.29  
##  3rd Qu.:2024-06-26   3rd Qu.: 98.96  
##  Max.   :2025-03-27   Max.   :141.08
##     Date_JPM            Close_JPM    
##  Min.   :2022-03-28   Min.   :102.0  
##  1st Qu.:2022-12-23   1st Qu.:133.0  
##  Median :2023-09-26   Median :148.2  
##  Mean   :2023-09-25   Mean   :167.5  
##  3rd Qu.:2024-06-26   3rd Qu.:201.5  
##  Max.   :2025-03-27   Max.   :279.9

Plots

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.