interactive_plot: Interactive plot with dygraph

Description Usage Arguments Details Value


This function takes a data frame and returns an interactive plot for the portfolio data. The plot is zoomable and specific data can be shown once the cursor is placed on the graph.





A data frame that the function takes in.


The value depicted by the plot, choices are nmv, gmv, contract, pnl and ret.


For all bar plots, green represents profit and red represents loss. This function also calculates gmv, cumulative P&L and return rates if these statistics are not in the data frame. Number of contracts will all be zero if the column is missing.


A plot. Red bars indicate loss and green bars indicate profits.

Search within the backtestGraphics package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.