Learn R Programming

SystemicR (version 0.1.0)

f_plot: Plot dynamic risk measures

Description

This function provides a framework to plot xts time series.

Usage

f_plot(xts_index_returns)

Arguments

xts_index_returns

A xts vector

Value

No return value, called for side effects

Examples

Run this code
# NOT RUN {
# Plot a xts vector

# NOT RUN {
# }
# 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)
# }
# NOT RUN {
# }
# }

Run the code above in your browser using DataLab