1 Import stock prices of your choice

2 Convert prices to returns by quarterly

## # A tibble: 80 Ă— 3
##    asset date       `quarterly returns`
##    <chr> <date>                   <dbl>
##  1 NKE   2020-03-31             -0.208 
##  2 NKE   2020-06-30              0.172 
##  3 NKE   2020-09-30              0.249 
##  4 NKE   2020-12-31              0.121 
##  5 NKE   2021-03-31             -0.0605
##  6 NKE   2021-06-30              0.153 
##  7 NKE   2021-09-30             -0.0602
##  8 NKE   2021-12-31              0.139 
##  9 NKE   2022-03-31             -0.212 
## 10 NKE   2022-06-30             -0.273 
## # ℹ 70 more rows

3 Make plot

4 Interpret the plot

All of the monthly returns for these stocks are relativley positive, with the only companies really going negative for a period being Nike, and Amazon however that only happened in 2 instances on both graphs while the remainder were all positive. Walmarts mothly returns are highly concentrated on the positive side of the graph which is what you want to see, as it shows that you’re basically guarenteed to get a positive return on your investment and it typically earns you the same ammount each quarter with little fluxuation.

5 Change the global chunck options

Hide the code, messages, and warnings