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 GD    2012-03-30  0.0827
##  2 GD    2012-06-29 -0.0992
##  3 GD    2012-09-28  0.0102
##  4 GD    2012-12-31  0.0617
##  5 GD    2013-03-28  0.0177
##  6 GD    2013-06-28  0.113 
##  7 GD    2013-09-30  0.118 
##  8 GD    2013-12-31  0.0944
##  9 GD    2014-03-31  0.137 
## 10 GD    2014-06-30  0.0736
## # … with 70 more rows

3 Make plot

4 Interpret the plot

From the plots, I believe that LMT or Lockheed Martin would be the best investment. LMT had higher rates of return and had more quarters than the rest that were positive. I would say that all the stocks did fairly well during this period as well. BA or Boeing however was the bottom performer. This could have to do with the issues that they were having with some of their planes at the time.

5 Change the global chunck options

Hide the code, messages, and warnings

I changed the code chunk at the top to hide the codes, messages, and warnings.