compare_returns: Compare returns visually between two securities

compare_returnsR Documentation

Compare returns visually between two securities

Description

Prints a plotly graph comparing returns, cumulative nominal returns, and cumulative multiplicative returns

Usage

compare_returns(a, b, a_name, b_name)

Arguments

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

Value

Returns plotly graph comparing returns, cumulative nominal returns, and cumulative multiplicative returns. Click graph name to un-toggle for better visibility.

Examples

compare_returns(GMEdaily, SPYdaily, "GME", "SPY")

avfintools documentation built on Oct. 6, 2022, 5:14 p.m.