1 Import stock prices

2 Convert prices to returns

##     asset      date   returns 
##   "asset"    "date" "returns"
## # A tibble: 80 × 3
##    asset date       returns
##    <chr> <date>       <dbl>
##  1 LULU  2017-03-31 -0.254 
##  2 LULU  2017-06-30  0.140 
##  3 LULU  2017-09-29  0.0423
##  4 LULU  2017-12-29  0.233 
##  5 LULU  2018-03-29  0.126 
##  6 LULU  2018-06-29  0.337 
##  7 LULU  2018-09-28  0.264 
##  8 LULU  2018-12-31 -0.290 
##  9 LULU  2019-03-29  0.298 
## 10 LULU  2019-06-28  0.0950
## # ℹ 70 more rows

3 Make plot

## $y
## [1] "Frequency"
## 
## $x
## [1] "Rate of Returns"
## 
## $title
## [1] "Distribution of Monthly Returns, 2012-2016"
## 
## $caption
## [1] "A typical monthly return is higher for AMZN, GOOG, and NKE than for LULU and UA."
## 
## attr(,"class")
## [1] "labels"