Skip to contents

This function plots each stock's change through history, since inception, with weighted attributions or absolute values.

Usage

splot_change(
  p,
  s,
  rel = TRUE,
  group = FALSE,
  n_days = 365,
  keep_old = FALSE,
  save = FALSE
)

Arguments

p

Dataframe. Result from daily_portfolio()

s

Dataframe. Result from daily_stocks()

rel

Boolean. Relative delta values (weighted with portfolio)? If not, absolute monetary delta values.

group

Boolean. Group stocks by stocks type?

n_days

Integer. How many days back you want to see? sold entirely?

keep_old

Boolean. Include sold tickers even though not currently in portfolio?

save

Boolean. Save plot into a local file?

Value

ggplot object