[R-SIG-Finance] Formatting multiple charts on same window
R. Michael Weylandt
michael.weylandt at gmail.com
Sat Jan 18 07:40:13 CET 2014
Bah, meant to say xtsExtra::plot.xts. Available off R-Forge.
Michael
On Sat, Jan 18, 2014 at 1:39 AM, R. Michael Weylandt
<michael.weylandt at gmail.com> wrote:
> Take a look at xts::plot.xts. There's a type="candlestick" option
> pre-made for you and all the shared x-axis alignment should work out
> of the box.
>
> On Thu, Jan 2, 2014 at 7:52 AM, <manojit_roy at comcast.net> wrote:
>> I am using layout=NULL to plot multiple charts on the same window, as follows:
>>
>>> getSymbols(c('DJIA','NDX','^IXIC'),from='2013-01-01')
>>> par(mfrow=c(3,1))
>>> chartSeries(DJIA,type='candlesticks',TA=NULL,theme='white',layout=NULL)
>>> chartSeries(NDX,type='candlesticks',TA=NULL,theme='white',layout=NULL)
>>> chartSeries(IXIC,type='candlesticks',TA=NULL,theme='white',layout=NULL)
>>
>> I'd like to remove the x-labels (they are same for all plots) and stretch the plots vertically to fill up space. With the usual R plot() function, I would adjust 'oma=c()' and 'mar=c()' in 'par()' , but they do not seem to work here. Is there an easy way to do this?
>>
>> Thanks.
>> [[alternative HTML version deleted]]
>>
>> _______________________________________________
>> R-SIG-Finance at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
>> -- Subscriber-posting only. If you want to post, subscribe first.
>> -- Also note that this is not the r-help list where general R questions should go.
More information about the R-SIG-Finance
mailing list