splot_roi | R Documentation |
This function plots a portfolio's historical ROI since inception or since last n days, with 2 moving average lines.
splot_roi(p, n_days = 365, historical = TRUE, ma = c(12, 50), save = FALSE)
p |
Dataframe. Result from |
n_days |
Integer. How many days back you want to see? |
historical |
Boolean. Historical ROI metric? If not, ROI will be calculated locally for n_days parameter |
ma |
Numeric Vector. Select 2 values for moving averages. Set to NA to turn this metric off |
save |
Boolean. Save plot into a local file? |
ggplot object
Other Investment:
daily_portfolio()
,
daily_stocks()
,
etf_sector()
,
splot_change()
,
splot_divs()
,
splot_etf()
,
splot_growth()
,
splot_summary()
,
splot_types()
,
stocks_file()
,
stocks_obj()
,
stocks_quote()
,
stocks_report()
Other Investment Plots:
splot_change()
,
splot_divs()
,
splot_etf()
,
splot_growth()
,
splot_summary()
,
splot_types()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.