Displaying 1 result from an estimated 1 matches for "ancbwplot002".
Did you mean:
ancbwplot001
2004 Jun 11
2
Sweave and multiple graphs
...but I do not know how
many figures will be produced so want to produce a more generic solution.
I thought of doing the above code in Sweave, and because I named the
plots in a unique way, I now want to read all the files in the current
directory that match "ANCbwplot001.eps" or "ANCbwplot002.eps" or
"ANCbwplot003.eps" an so on. If I have this as a vector in R, then I can
loop over this vector and do something like:
<<results=tex,echo=FALSE>>=
file.vec <- all files in directory that match name
for(i in seq(along=file.vec))
{
cat("\\includegraphic...