Plotting the daily and monthly returns are useful for understanding the daily and monthly volatility of the investment. ![]() Scale_x_date(date_breaks = "years", date_labels = "%Y")Ĭalculating the cumulative returns for the Netflix stock Labs(x = "Date", y = "Monthly returns") ![]() # Charting the monthly returns for Netflix. We will use the bar chart to plot the data. Next we can plot the monthly returns for Netflix since 2009. Yend = 20, color = 'blue', arrow = arrow(type = "open")) Īnnotate(geom = 'text', x = 0.430, y = 200, label = "Extremely\npositive\nreturns") To get a sense of how extreme the returns can be we can plot a histogram. ![]() Scale_y_continuous(breaks = seq(-0.5,0.6,0.05),Īfter looking at the daily returns chart for Netflix we can conclude that the returns are quite volatile and the stock can move /- 5% on any given day. Scale_x_date(date_breaks = "years", date_labels = "%Y") Ggplot(aes(x = date, y = nflx_returns)) Charting the daily and monthly for Netflix # We will use a line chart for daily returns
0 Comments
Leave a Reply. |