I have a graphsheet device with tabbed pages, for example by entering (on
S-Plus 6.2 Prof Windows in this case)
dotplot(site ~ yield | year, data=barley, layout=c(1,1))
If I now enter
dev.copy(wmf.graph, file="graph-###.wmf")
only the currently active page gets exported and not the entire set of
graphs.
I would need to cycle through the pages and activate each before calling
dev.copy, so it seems.
So how can I activate the pages one after the other or use a completely
different, more elegant approach?
Thank you very much in advance!
Andreas Krause
PS. For the full context: the problem is that wmf.graph uses a different
specification of colors than graphsheet, and I find them difficult to map.
That's why I want to use dev.copy instead of simply opening a wmf.graph
device and re-running the commands. I hate the color implementation(s!).
|