Can't get multiple panel plots with chartSeries function from quantod package in R
Posted
by Milktrader
on Stack Overflow
See other posts from Stack Overflow
or by Milktrader
Published on 2010-05-08T02:06:03Z
Indexed on
2010/05/08
2:08 UTC
Read the original article
Hit count: 305
r
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.
© Stack Overflow or respective owner