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 TSLA  2022-03-31 -0.107  
##  2 TSLA  2022-06-30 -0.470  
##  3 TSLA  2022-09-30  0.167  
##  4 TSLA  2022-12-30 -0.767  
##  5 TSLA  2023-03-31  0.521  
##  6 TSLA  2023-06-30  0.233  
##  7 TSLA  2023-09-29 -0.0451 
##  8 TSLA  2023-12-29 -0.00698
##  9 TSLA  2024-03-28 -0.346  
## 10 TSLA  2024-06-28  0.118  
## # ℹ 50 more rows

3 Make plot

4 Interpret the plot

GOOGL, JNJ, TSLA and NVDA all had more positive quarterly returns from 2022-2025, with the frequencies also being relatively low below 0.0 during this time. However, ORCL has been very volatile, with most of their returns being negative and at a frequent rate.

5 Change the global chunck options

Hide the code, messages, and warnings