Re: [R] multiple plots with a title using postscript()

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Tue, 04 Mar 2008 23:50:27 +0100

array chip wrote:
> Thanks, yes, it worked. I got another problem. I
> generated these plots into a postscript file, now the
> title was truncated (only show lower half). I tried
> changing region argument in the postscript(), but not
> working. any suggestions?
>
I guess you need to increase the outer margins

par(oma=....)

> postscript("database.ps",horizontal=T,color.p=T,ps.region=c(50,7.92,594,784))
>
> par(mfrow=c(2,3))
> plot(..)
> plot(..)
> plot(..)
> plot(..)
> plot(..)
> plot(..)
> mtext('title', outer=T, line=-1,font=1,cex=1.3)
> dev.off()
>
> thanks
>
>
>
>
> --- Peter Alspach <PAlspach_at_hortresearch.co.nz> wrote:
>
>
>> John
>>
>> ?mtext
>>
>> e.g. mtext('General title', outer=T, line=-1)
>>
>> HTH
>>
>> Peter Alspach
>>
>>
>>
>>> -----Original Message-----
>>> From: r-help-bounces_at_r-project.org
>>> [mailto:r-help-bounces_at_r-project.org] On Behalf Of
>>>
>> array chip
>>
>>> Sent: Wednesday, 5 March 2008 10:48 a.m.
>>> To: R-help_at_stat.math.ethz.ch
>>> Subject: [R] multiple plots with a title
>>>
>>> Hi, I am wondering how can I add a common title to
>>>
>> the top of
>>
>>> a page that contains multiple plots using, e.g.,
>>>
>> par(mfrow=c(2,3))?
>>
>>> thanks
>>>
>>> John Zhang
>>>
>>> ______________________________________________
>>> 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.
>>
>> The contents of this e-mail are privileged and/or
>> confidential to the named
>> recipient and are not to be used by any other
>> person and/or organisation.
>> If you have received this e-mail in error, please
>> notify the sender and delete
>> all material pertaining to this e-mail.
>>
>>
>
>
>
> ____________________________________________________________________________________
> Looking for last minute shopping deals?
>
> ______________________________________________
> 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.
>

-- 
   O__  ---- Peter Dalgaard             ster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard_at_biostat.ku.dk)              FAX: (+45) 35327907

______________________________________________
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.
Received on Tue 04 Mar 2008 - 22:53:16 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 05 Mar 2008 - 00:30:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive