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.
> 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
--
Jean R. Lobry (lobry at biomserv.univ-lyon1.fr)
Laboratoire BBE-CNRS-UMR-5558, Univ. C. Bernard - LYON I,
43 Bd 11/11/1918, F-69622 VILLEURBANNE CEDEX, FRANCE
allo : +33 472 43 12 87 fax : +33 472 43 13 88
http://pbil.univ-lyon1.fr/members/lobry/
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
Hi,
what I know is that in plot caracter expansion can be obtain by cex
In R documentation you can have all the graphical parameters for high level
plotting function
----- Message d'origine ----
De : Jean lobry <lobry@biomserv.univ-lyon1.fr>
À : r-help@stat.math.ethz.ch
Envoyé le : Mercredi, 19 Avril 2006, 9h28mn 37s
Objet : [R] par(tmag) question
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.
> 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
--
Jean R. Lobry (lobry@biomserv.univ-lyon1.fr)
Laboratoire BBE-CNRS-UMR-5558, Univ. C. Bernard - LYON I,
43 Bd 11/11/1918, F-69622 VILLEURBANNE CEDEX, FRANCE
allo : +33 472 43 12 87 fax : +33 472 43 13 88
http://pbil.univ-lyon1.fr/members/lobry/
______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[[alternative HTML version deleted]]