This is less of a question than a warning. In LyX 2.1.0 with pgfSweave under Ubuntu 10.04 I've been trying to generate a number of plots with a for loop. For example
<<fig=TRUE>>=
for (lala in 1:200) { hist(rpois(1234,lala)); }
@
. After a long period of experimentation I'm confident saying that the loop works for for(lala in 1:20), for(lala in 21:40), for(lala in 41:60), ..., for(lala in 181:200), but not for more than twenty plots at a time.
Strange, I know, and if I come up with a resolution to the problem I'll post it.
pgfSweavereally have the capability of making plots from a for loop like that? I've always generated them in aforloop but then usedcatto write out the LaTeX code, just like you have to do for regular Sweave. (On the other hand, judging by the missing parentheses, maybe this is meant to be pseudo-code, in which case, a reproducible example would be helpful.) Thanks for your clarification. – Aaron Nov 14 '11 at 3:13plot(hist(rpois(33,i))). What do you mean bycatto write out theLaTeXcode? I am doing this withinLyX. – isomorphismes Nov 14 '11 at 4:03