Почему в результате получается 8-страничный PDF, а не 1-страничный PDF с 8 диаграммами?
library(quantmod)
s = c("AAL","DAL","UAL","LUV","FDX","ALK","JBLU","HA")
x <- list()
### get symbols
for (i in s) { x[[i]] <- getSymbols(i, src="yahoo", auto.assign=FALSE, return.class="xts") }
### create pdf
pdf('foo.pdf')
par(mfrow = c( 4, 2 ) )
for (i in x) { chartSeries(i) }
dev.off()