Tom Willems
2007-Aug-22 08:33 UTC
[R] How do i print a "main title" on a win.graph with several plots?
Een ingesloten tekst met niet-gespecificeerde tekenset is van het bericht gescrubt ... Naam: niet beschikbaar Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070822/02fe6e95/attachment.pl
Prof Brian Ripley
2007-Aug-22 10:15 UTC
[R] How do i print a "main title" on a win.graph with several plots?
?title, look at the 'outer' argument. You can see further discussion of the outer margins in 'An Introduction to R'. I don't know why you are using win.graph(): it is a deprecated form of windows() with many of the arguments taking unchangable defaults. On Wed, 22 Aug 2007, Tom Willems wrote:> Good Mornig All, > > How R you today? ;o) > > I have lots of questions, but i l start with the simplest one, > to wich i am shy to say, i did not find the answer. > > It is the following: > > When i make a summary plot like for example plot( summary(glm)), > i get one window, one main title, and 4 graph's in that window. > > Now i do know how to get several graphs in one window, > buit i don't manage geting one main title , in the top middel of the > window. > I can give every plot a different main and subtitle, but i can't put no > title in the "win.graph()" box. > > this is what i do: > > win.graph(); op <- par(mfrow = c(1,2)) > boxplot(lg_value~labo, main="Test 1 at day 1",ylab="log(x) ", > xlab="different lab's", data=dataset,ylim=c(-0.05,5)) > boxplot(lg_value~labo, main="Test 2 at day 1",ylab="log(x)", > xlab="different lab's", data=dataset,ylim=c(-0.05,5)) > par(op); > > Then i get one graph window, two plots each with their onw main title. > What i'd like to have is, one main title saying " At day 1", and then two > plots with the different tests. > How can i do this, pls? > > Kind regards, > Tom W. > > > Disclaimer: click here > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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 > and provide commented, minimal, self-contained, reproducible code. >-- 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