Description Usage Arguments Value Author(s) Examples
View source: R/Functions_SystemicR.R
This function provides a framework to plot xts time series.
1 | f_plot(xts_index_returns)
|
xts_index_returns |
A xts vector |
No return value, called for side effects
Jean-Baptiste Hasse
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # Plot a xts vector
# NOT RUN {
# Generate data returns
v_returns <- numeric(10)
v_returns <- rnorm(10, 0, 0.01)
v_date <- seq(from = as.Date("2019-01-01"), to = as.Date("2019-10-01"), by = "month")
xts_returns <- xts(v_returns, order.by = v_date)
# Plot the xts vector of simulated returns
f_plot(xts_returns)
# }
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.