I have several xts objects, most of which are daily observations. I have one which is monthly. I would like to be able to combine three of them into one xts object, which I can then use in the PerfrormanceAnalytics package (eg - charts.PerformanceSummary). I have the following:
Ret <- merge.xts(dailyReturns[,3],
shortBothDaily[,3],
shortBothMonthly[,3])
The above code gives me an xts object, with the monthly returns filled in with 'NA'. I can make this fill be equal to zero, which then allows me to plot, but it produces a step wise function:
charts.PerformanceSummary(Ret)
I would like something similar to this, but with a typical looking cumulative returns series for the monthly data.
I can convert the two daily series into monthly (to.monthly()), but would rather not lose the granularity in the daily returns.
Is there an elegant way to do this? To maybe fill with simulated return data? Or have PerformanceAnalytics recognize the monthly return data and plot it accordingly?
I would like to see something like this (via Bloomberg):
As you can see, we have a series of daily returns, with another series of monthly returns plotted over the same time period.
This is not a huge deal, but it seems fairly simple and as if it should be a common need. I was hoping there was some sort of PerformanceAnalytics way to plot monthly and daily values together.
PerformanceAnalytics
doesn't make up data. – Brian G. Peterson