tags:

views:

44

answers:

1

Jeff Ryan's quantmod package is an excellent contribution to the R finance world.

I like to use chartSeries() function, but when I try to get it to display multiple panes simultaneously, it doesn't work.

par(mfrow=c(2,2))

chartSeries (SPX)
chartSeries (SPX, subset="2010")

chartSeries (NDX)
chartSeries (NDX, subset="2010")

would normally return a four-panel graphic as it does with the plot() function but in the chartSeries example it runs through all instances one at a time without creating a single four-panel graphic.

A: 

No, sadly, you cannot (unless this changed very recently).

The power of adding new sub-panels comes at the prices of not being able to combine these plots as you otherwise could in base graphics.

But you could re-create them in base graphics and then the par(mfrow=...) etc idioms would be available to you.

Dirk Eddelbuettel
Thanks Dirk. I was working on an end-of-day (EOD) overview of markets project and will go another way with it now.
Milktrader