View source: R/chart_fwd_curves.R
chart_fwd_curves | R Documentation |
Returns a plot of forward curves through time
chart_fwd_curves(df = dfwide, cmdty = "cmewti", weekly = TRUE, ...)
df |
Wide dataframe with date column and multiple series columns (multivariate). |
cmdty |
Futures contract code in expiry_table object: unique(expiry_table$cmdty). |
weekly |
Defaults to TRUE for weekly forward curves. |
... |
other graphical parameters |
plot of forward curves through time. NULL
Philippe Cote
df <- dfwide %>%
dplyr::select(date, dplyr::starts_with("CL")) %>%
tidyr::drop_na()
chart_fwd_curves(
df = df, cmdty = "cmewti", weekly = TRUE,
main = "WTI Forward Curves", ylab = "$ per bbl", xlab = "", cex = 2
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.