plot_income: Generate an income plot for a set of securities

Description Usage Arguments Value

View source: R/plot_income.R

Description

Generate a plot that shows the income broken out by security and reinvestment for a given set of securities

Usage

1
2
3
4
5
6
7
plot_income(
  dat,
  yield = FALSE,
  cost = 1000,
  annual = FALSE,
  main = ggplot2::element_blank()
)

Arguments

dat

a list of data.tables in the format that is returned by get_income_stream

yield

show yield on cost instead of absolute amounts

cost

original cost of the investments

annual

annualize numbers

main

title of the plot

Value

a ggplot2 object with the plot for the securities


David-Statistics/djmisc documentation built on Jan. 1, 2022, 4:04 p.m.