[R-SIG-Finance] plot.xts/chart_Series, multi.panel and candlesticks
Mike
m|ke9 @end|ng |rom po@teo@n|
Sun Sep 5 15:36:12 CEST 2021
I like to plot two candlesticks charts (e.g. two stocks) stacked in
the same plot.
With plot.xts I found some examples
http://joshuaulrich.github.io/xts/plotting_panels.html
https://github.com/joshuaulrich/xts/issues/140
for using the multi.panel option but only for one-column-data. Since
candlesticks need four columns of data I wonder how to tell plot.xts
which columns to use for panel 1 and which for panel 2.
Given two stocks
getSymbols('AAPL')
getSymbols('MSFT')
Would I have to merge them into a new xts or pass them to plot.xts
separately?
Mike
More information about the R-SIG-Finance
mailing list