[R] coplot and par

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Aug 27 08:55:46 CEST 2004


On Thu, 26 Aug 2004, Mihai Nica wrote:

> R 1.9.1 on Win2000 or Win98SE.
> 
> I am using coplot as follows:
> 
> coplot(AVG~LRPI| REGION)
> 
> the output seems normal but I get:
> 
> "Warning message:
> calling par(new=) with no plot"

>From the NEWS file for R-patched:

    o	coplot(..) doesn't give an extraneous warning anymore when called
	on a fresh device.

so it is a bug that is fixed in the latest version (which you cna find on 
CRAN).
> 
> This is the only explanation that I have for being unable to use par() with 
> coplot for changing the way the xlab and ylab appears. 

xlab and ylab are not part of par -- see its help page.

> From within coplot I can change the text itself but not the font,
> fontsize, etc, but par() before coplot has absolutely no effect
> wahtsoever (maybe it isn't supposed to?).
> 
> I guess the question is: how can one change the way the xlab and ylab appear 
> on a coplot?

They are listed as arguments to coplot, and work for me when given there.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list