bernhard.mueller at art.admin.ch
2007-Oct-03 09:41 UTC
[R] Change title size in plot(model)?
I want to use the plot(model) function to generate Tukey-anscomb and Q-Q plots of a lm(). I manage to change all labels but the main one which apparently is neither main or sub. So far I have tried as par setting: cex (changes symbol size within the plot), cex.main (no effect), cex.sub (no effect) cex.lab (changes label size), cex.axis (changes axis label size). What I would like to change is the label that says: "Residuals vs. Fitted" and "Q-Q normal". So what other cex commands are there? THX for any help. Bernhard Müller ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Eidgenössisches Volkswirtschaftsdepartement EVD Forschungsanstalt Agroscope Reckenholz-Tänikon ART Ökologische Landbausysteme Reckenholzstrasse 191, CH-8046 Zürich Tel. ++41 (0)44 / 377 74 47 FAX ++41 (0)44 / 377 72 01 mailto:bernhard.mueller@art.admin.ch http://www.reckenholz.ch [[alternative HTML version deleted]]
On 03/10/2007 5:41 AM, bernhard.mueller at art.admin.ch wrote:> I want to use the plot(model) function to generate Tukey-anscomb and Q-Q plots of a lm(). I manage to change all labels but the main one which apparently is neither main or sub. So far I have tried as par setting: cex (changes symbol size within the plot), cex.main (no effect), cex.sub (no effect) cex.lab (changes label size), cex.axis (changes axis label size). What I would like to change is the label that says: "Residuals vs. Fitted" and "Q-Q normal". So what other cex commands are there? THX for any help.When in doubt, look at the source. plot.lm fixes the size of those titles (which come from the caption argument). So a simple workaround is something like plot(model, caption="") title(main="mytitle", cex.main=mysize) You will probably need something more complicated in the plot command to select the plots you want one at a time. Duncan Murdoch> > > Bernhard M?ller > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Eidgen?ssisches Volkswirtschaftsdepartement EVD > Forschungsanstalt Agroscope Reckenholz-T?nikon ART > ?kologische Landbausysteme > > Reckenholzstrasse 191, CH-8046 Z?rich > Tel. ++41 (0)44 / 377 74 47 > FAX ++41 (0)44 / 377 72 01 > mailto:bernhard.mueller at art.admin.ch > http://www.reckenholz.ch > > > [[alternative HTML version deleted]] > > > > ------------------------------------------------------------------------ > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
On Wed, 3 Oct 2007, bernhard.mueller at art.admin.ch wrote:> I want to use the plot(model) function to generate Tukey-anscomb and Q-Q > plots of a lm(). I manage to change all labels but the main one which > apparently is neither main or sub. So far I have tried as par setting: > cex (changes symbol size within the plot), cex.main (no effect), cex.sub > (no effect) cex.lab (changes label size), cex.axis (changes axis label > size). What I would like to change is the label that says: "Residuals > vs. Fitted" and "Q-Q normal". So what other cex commands are there? THX > for any help.As the footer says PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Those are not labels generated by plot.lm, although similar ones are. And you seem to be talking about changing _the size_, not changing the label (which you do via the caption argument). I think you are referring to the 'caption' argument, which is not a title but plotted by mtext. The size there is not afffected by any par() setting, and probably should be controlled by an argument to plot.lm.> > > Bernhard M?ller > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Eidgen?ssisches Volkswirtschaftsdepartement EVD > Forschungsanstalt Agroscope Reckenholz-T?nikon ART > ?kologische Landbausysteme > > Reckenholzstrasse 191, CH-8046 Z?rich > Tel. ++41 (0)44 / 377 74 47 > FAX ++41 (0)44 / 377 72 01 > mailto:bernhard.mueller at art.admin.ch > http://www.reckenholz.ch > > > [[alternative HTML version deleted]] > >-- 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