Re: [R] warning on gamma option in par(args) or calling par(= new)?

2007-12-29 Thread AA
Thank you for your quick reply Prof. Ripley. I thought I am modifying par() in par(mfrow = c(4,2)). This is not clear for me. But I do understand now that par() applies to each device. Thanks again. AA. - Original Message - From: Prof Brian Ripley [EMAIL PROTECTED] To: AA [EMAIL

Re: [R] warning on gamma option in par(args) or calling par(= new)?

2007-12-28 Thread Prof Brian Ripley
You are calling par() *before* opening and (in on.exit) *after* closing the pdf() device. par() applies on a per-device basis, and if no device is open the default device will be opened. As for why you get the warnings about 'gamma' and 'new', see ?par and read their entries. Since you

[R] warning on gamma option in par(args) or calling par(= new)?

2007-12-27 Thread AA
Dear All, I have the following function tstpar - function(n = 200, want.pdf = FALSE, pdfFileName = NULL){ oldpar - par(no.readonly = TRUE) on.exit(par(oldpar)) steps - seq(from = 1, to = 8, by = 1) h - 10; w - 6 if(want.pdf){pdf(file = pdfFileName, onefile = TRUE,