search for: plot_stuff

Displaying 1 result from an estimated 1 matches for "plot_stuff".

2008 Jul 01
3
dev.off() inside a function & other glitches
...then a last lattice xyplot (itself within a function) outside the loop and finally call dev.off() to write to the file. This works well apart from the fact that the last plot does not get sent to the file unless I comment out dev.off() and then apply it in the console afterwards instead: plot_stuff( ...); dev.off() The device is opened like this: pdf( paste( var_string, ".pdf", sep="" ), onefile=TRUE, paper="a4r", width=9, height=6.5 ) Also, if I try to send two different xyplots after the loop only the last one ever gets written to the file, whether or n...