[18841] in s-news-athena

home help back first fref pref prev next nref lref last post

Re: [S] Fitting magnified ylab onto plot

daemon@ATHENA.MIT.EDU (Nicole DePriest Demers)
Tue Aug 3 23:12:32 1999

Date: Tue, 3 Aug 1999 23:06:20 -0400 (EDT)
From: Nicole DePriest Demers <ntd@stat.ohio-state.edu>
Reply-To: Nicole DePriest Demers <ntd@stat.ohio-state.edu>
To: s-news@wubios.wustl.edu
In-Reply-To: <Pine.HPP.3.95.990803214104.10624A-100000@osustat.mps.ohio-state.edu>
Message-Id: <Pine.HPP.3.95.990803225418.10947D-100000@osustat.mps.ohio-state.edu>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


Thanks to Steve Buyske and Patrick Connolly for their prompt responses.
Both suggested I put the par command *after* the postscript command
(duh!).  Patrick further suggested that I increase the values in mai.
I had to increase values for both the left and bottom margins.  Worked
perfectly after that.  Below is my new, improved and working code.

postscript("mean.ps", width=8, height=5.5, horizontal=T)
 par(mai=c(1.1,1.1,0.574,0.294))                                          
 plot(x.range, y.range, xlab="Time in Weeks", ylab="Mean", type="n",
   cex=1.4)
 points(tyme, mean.data, cex=1.7)
 lines(0:max(tyme), ms.mean)
dev.off()

Thanks again,

Nicole 
______________________________________________________________________________
Nicole Demers
Statistics Department
The Ohio State University
1958 Neil Ave., #404
Columbus, OH 43210, USA
(614) 292-6038
ntd@stat.ohio-state.edu

On Tue, 3 Aug 1999, Nicole DePriest Demers wrote:

> 
> Hello,
> 
> In my plot, I have increased the font size of the axis labels.  I adjusted
> the graphical parameter "mai" so the ylab would fit when I plot to the
> screen.  Problems occur when I try to create a postscript file.  When I
> run the postscript() command, I get the following "Warning in axes: No
> room for ylab".
> 
> I tried to fiddle around with ps.options but to no avail.  Below is a copy
> of my code.  Any suggestions welcome.  I'll summarize to the list.
> 
> (I am using Version 3.4 Release 1 for HP 9000 Series, HP-UX 9.0.5 : 1996
> and printing to an HP LaserJet 4000 N.)
> 
> par(mai=c(0.714,0.75,0.574,0.294))  #2nd value was increased from 0.714.
> postscript("mean.ps", width=8, height=5.5, horizontal=T)
>      plot(x.range, y.range, xlab="Time in Weeks", ylab="Mean", type="n",
> cex=1.4)
>      points(tyme, mean.data, cex=1.7)
>      lines(0:max(tyme), ms.mean)
> dev.off()
> 


-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

home help back first fref pref prev next nref lref last post