[R] par(tmag) question

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Apr 19 11:04:38 CEST 2006


On Wed, 19 Apr 2006, Jean lobry wrote:

> Dear list,
>
> I'm trying to understand the graphical parameters by a systematic exploration
> of the par() function (if you are interested by the result it's here
> http://pbil.univ-lyon1.fr/R/fichestd/tdr75.pdf, the comments are all in
> french but it's pure R code under Sweave).
>
> I have a problem with par(tmag) illustrated by the following code:
>
> ###################################################
> par(mfrow = c(2, 2))
> for(tmag in seq(from = 0.5, to = 2, length = 4)){
>   par(tmag = tmag)
>   plot(0, main = paste("tmag =", round(tmag, 2)))
> }
> ###################################################
>
> From the documentation, tmag is "[a] number specifying the enlargement of
> text of the main title relative to the other annotating text of the plot",
> so that my understanding is that the main title size should have been
> modified between the four figures. However, on my devices (quartz, pdf,
> png, or x11) the main title size is not affected between the four figures.
>
> What am I missing here? I have RSiteSearch("tmag") without success.

It's not used by the internal code of title(), and I believe it is 
ancient R history.  Use "cex.main" instead.

You are using 2.2.0.  2.3.0 is in code freeze, but I will tidy up the 
documentation in 2.3.0 and remove this in 2.4.0.

>
>>  version
>          _
> platform powerpc-apple-darwin7.9.0
> arch     powerpc
> os       darwin7.9.0
> system   powerpc, darwin7.9.0
> status
> major    2
> minor    2.0
> year     2005
> month    10
> day      06
> svn rev  35749
> language R
>
> Any hint would be greatly appreciated,
>
> Jean
>

-- 
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