plot_income_forecast: Income Forecast over time

Description Usage Arguments

View source: R/plot_income_forecast.R

Description

Create a forward income forcast plot over time. Optionally add an exponential function connecting the first and last time points to calculate CAGR.

Usage

1
2
3
4
5
6
7
8
plot_income_forecast(
  data,
  date_field = "Date",
  forecast_field = "Forward_div",
  y = NULL,
  add_cagr = TRUE,
  n_years = 1
)

Arguments

data

a data.table with a field for date and forward income

date_field

a character with the date field

forecast_field

a character with the income forecast field

y

year of interest (NULL defaults to current year)

add_cagr

if TRUE adds a smoothed income over time line and prints the CAGR from the first time period to the last in the upper left.

n_years

How many years to include in the plot


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