[R] Multpile (45x8) graphs of the same page / device: titles crammed

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Dec 10 15:00:12 CET 2008


font is an integer number (1,2,3,4,5 on that device): please do read ?par.

You are looking of 'pointsize': see ?pdf, but I think rather that you 
should use a larger plotting surface (see 'height' and 'width')


On Wed, 10 Dec 2008, tsunhin wong wrote:

> Dear R users,
>
> I'm trying to plot 45x8 graphs on the same pdf / device for the sake
> of visual comparison.
> par(mfcol=c(45,8))
> par(mai=c(0,0,0,0))
>
> In ?title, I can see there are cex and font settings: I set cex = 0.01
> and font = 1: it is still very large, and then I tried setting font <
> 1, e.g. font = 0.5, Then I get an error:
>
> Error in title(paste(Ppercent, "% ", "t30v2msa1.data", sep=""), cex = 0.1, :
>      invalid value specified for graphical parameter "font"
>
> Is there a work around so that I can see all the title?
> At the moment, if I set the title to font=1, the upper halves of the
> fonts / letters of all the title will be cut, so I can't see the
> "Ppercent"...
>
> Thanks!
>
> Regards,
>
>      John
>
> ______________________________________________
> 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.
>

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