Description Usage Arguments Value See Also Examples
Produces a plot of cumulative performance and drawdown over time given a history of returns.
1 2  | gg_charts_summary_2(r.xts, ptitle = "", geometric = TRUE,
  drawdown_minima = NA)
 | 
r.xts | 
 an XTS object with period returns for each column; function will compute cumulative return and drawdowns for each item.  | 
ptitle | 
 a plot title string, default empty string  | 
geometric | 
 whether cumulative returns should use geometric method  | 
drawdown_minima | 
 color for drawdown minima marker lines, default NA for none  | 
ggplot2 object for further manipulation
PerformanceAnalytics::charts.PerformanceSummary, directlabels, dplyr, tidyr, magrittr, ggplot2
1 2 3 4 5 6 7 8 9 10  | ## Not run: 
pr <- blotter::PortfReturns(acct_name)
colnames(pr) <- gsub(".DailyEndEq", "", colnames(pr))
pr$Theoretical <- rowSums(pr)
p <-gg_charts_summary_2(pr$Theoretical,
                       ptitle = "Theoretical Returns",
                       drawdown.minima = "gray")
p
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.