1 Import stock prices of your choice

2 Convert prices to returns by quarterly

## # A tibble: 80 × 3
##    asset date        returns
##    <chr> <date>        <dbl>
##  1 XOM   2012-03-30  0.0139 
##  2 XOM   2012-06-29 -0.00660
##  3 XOM   2012-09-28  0.0729 
##  4 XOM   2012-12-31 -0.0488 
##  5 XOM   2013-03-28  0.0467 
##  6 XOM   2013-06-28  0.00955
##  7 XOM   2013-09-30 -0.0420 
##  8 XOM   2013-12-31  0.169  
##  9 XOM   2014-03-31 -0.0283 
## 10 XOM   2014-06-30  0.0370 
## # ℹ 70 more rows

3 Make plot

4 Interpret the plot

BP has the largest quantity of positive returns historically, with each other stock expressing net neutral or slight negative return.

5 Change the global chunck options

Hide the code, messages, and warnings