1 Import stock prices of your choice

2 Convert prices to returns by quarterly

## # A tibble: 60 × 3
##    asset date       returns
##    <chr> <date>       <dbl>
##  1 AMZN  2012-03-30  0.123 
##  2 AMZN  2012-06-29  0.120 
##  3 AMZN  2012-09-28  0.108 
##  4 AMZN  2012-12-31 -0.0137
##  5 AMZN  2013-03-28  0.0604
##  6 AMZN  2013-06-28  0.0412
##  7 AMZN  2013-09-30  0.119 
##  8 AMZN  2013-12-31  0.243 
##  9 AMZN  2014-03-31 -0.170 
## 10 AMZN  2014-06-30 -0.0351
## # … with 50 more rows

3 Make plot

4 Interpret the plot

There is a higher quarterly return and a more consistent return from Walmarts stock over the years 2012-2016 over Target and Amazon. The highest returns across all companies happened during 2015 for AMZN, 2014 for TGT and Walmart consistently had strong returns from 2013-2016.

5 Change the global chunck options

Hide the code, messages, and warnings