comparisonPlot: Comparing a financial parameter between two companies

Description Usage Arguments Value Author(s) Examples

Description

Compare any parameter on a financial statement graphically. This function makes use of the package "plotly". This function also makes use of the "createData" function within the financialStatementPlot package. This version of the function is to be used practically; not in the shiny app

Usage

1
comparisonPlot(x, ticker1, ticker2, state)

Arguments

x

A numeric containing the index number of the variable within the financial statement that will be plotted. Use createData(char,state)[[2]] to observe the vector of these varaibles.

ticker1

A string containing the stock ticker of the company in argument A.

ticker2

A string containing the stock ticker of the company in argument B.

state

A numeric containing an idicator of which statement the user wants to compare variables from. 1 for Income Statement, 2 for Balance sheet and 3 for statement of cash flows

Value

A plot or ggplot object.

Author(s)

Ryan Voyack

Examples

1
comparisonPlot(2,'wmt','aapl',2) #plots the "Cash Only" variable from the balance sheets of Walmart and Apple

ryanvoyack/financialStatementPlot documentation built on May 13, 2019, 8:38 a.m.