An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20110926/86fdaf84/attachment.pl>
quantmod: overlay plots
4 messages · Chris Waggoner, Gei Lin, G See +1 more
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20110926/ad9632e0/attachment.pl>
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20110927/5691f764/attachment.pl>
G See <gsee000 at gmail.com> [2011-09-27 06:41]:
If you follow the first alternative suggested by Gei and use PerformanceAnalytics, the RF function (which is an alias for makeReturnFrame) in my qmao package<https://r-forge.r-project.org/R/?group_id=1113> can assist you in merging the data. library(qmao) library(PerformanceAnalytics) charts.PerformanceSummary(RF(getSymbols(c("QQQ","EWG","EWI"))))
Very nice! Thank you for creating this package.
The chart_Series function (note the underscore) can also handle multiple
time series
library(quantmod)
getSymbols(c("SPY","DIA"))
# This will put 2 price series on a chart
thm <- chart_theme()
thm$col$line.col <- 'lightblue'
chart_Series(Cl(SPY),theme=thm)
add_Series(Cl(DIA),on=1)
Add thanks to Jeff for adding this capability -- I've wanted it for years. -rex --