compare_returns {avfintools}R 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")

[Package avfintools version 0.1.0 Index]