View source: R/plot_income_forecast.R
Create a forward income forcast plot over time. Optionally add an exponential function connecting the first and last time points to calculate CAGR.
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
)
|
data |
a |
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.