powered by
chart_fwd_curves
Returns a plot of forward curves through time
chart_fwd_curves(df = dfwide, cmdty = "cmewti", weekly = FALSE, ...)
Wide dataframe with date column and multiple series columns (multivariate)
Futures contract code in expiry_table object: unique(expiry_table$cmdty)
TRUE if you want weekly forward curves
other graphical parameters
plot of forward curves through time
# NOT RUN { df <- dfwide %>% dplyr::select(date, dplyr::starts_with("CL")) chart_fwd_curves(df = df,cmdty = "cmewti",weekly = TRUE, main="WTI Forward Curves",ylab="$ per bbl",xlab="",cex=2) # }
Run the code above in your browser using DataLab