Learn R Programming

avfintools (version 0.1.0)

compare_returns: 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)

Value

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

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

Examples

Run this code
compare_returns(GMEdaily, SPYdaily, "GME", "SPY")

Run the code above in your browser using DataLab