Re: [R] temporarily modify par values?

2009-04-04 Thread Jim Ottaway
ta >invisible(expr) > } > which returns expr invisibly so that this works: > bp <- with(par(mar = c(4, 1, 1, 1)), boxplot(1:10)) Thank you very much, that looks like a better way of cleaning up with an error too than my attempt. Yours sincerely, -- Jim Ottaway ___

Re: [R] temporarily modify par values?

2009-04-04 Thread Jim Ottaway
things? [I'm new to this kind of stuff in R] Or is there a 'with.error.handler' or 'with.unwind.protection' wrapper? ;-) Yours sincerely, -- Jim Ottaway __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinf

Re: [R] temporarily modify par values?

2009-04-04 Thread Jim Ottaway
>>>>> Romain Francois writes: > Jim Ottaway wrote: >> Is there some sort of 'with.par' function that temporarily changes par >> parameters and then re-sets them so that instead of doing things such as > "with" is generic, so you could do some

[R] temporarily modify par values?

2009-04-04 Thread Jim Ottaway
but the last argument are parameters for par, and the last is evaluated with opar <- par(...) and par(opar) wrapped around it? Yours sincerely, -- Jim Ottaway __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] change individual label colours in a cluster plot?

2009-02-05 Thread Jim Ottaway
sing a script to edit the postscript output, but I'm keen to find an R solution, if only to improve my understanding of R graphicss. Yours sincerely, -- Jim Ottaway __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-he

[R] change individual label colours in a cluster plot?

2009-02-05 Thread Jim Ottaway
I am doing some bibliometric analysis of interdisciplinarity using cluster analysis of co-authorship. I'd like to be able to specify the colour of individual authors in the labels to show a prior grouping by discipline (red for sociology authors, blue for economics authors, ..., that sort of thing