compare_returns | R Documentation |
Prints a plotly graph comparing returns, cumulative nominal returns, and cumulative multiplicative returns
compare_returns(a, b, a_name, b_name)
a |
The first dataframe filled with data from the function getdaily() |
b |
The second dataframe filled with data from the function getdaily() |
a_name |
Character string name for first dataframe |
b_name |
Character string name for second dataframe |
Returns plotly graph comparing returns, cumulative nominal returns, and cumulative multiplicative returns. Click graph name to un-toggle for better visibility.
compare_returns(GMEdaily, SPYdaily, "GME", "SPY")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.