[19056] in s-news-athena

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

Summary: [S] strip labels in trellis plots

daemon@ATHENA.MIT.EDU (Dale.Wilson@cmis.CSIRO.AU)
Fri Aug 27 02:53:26 1999

From: Dale.Wilson@cmis.CSIRO.AU
Message-Id: <01C5711ED0DCD111A3D70000F8077C6C8601C2@parramatta.nsw.cmis.CSIRO.AU>
To: s-news@wubios.wustl.edu
Date: Fri, 27 Aug 1999 16:40:09 +1000
Mime-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"



Dear S-users,

Thank you for all the useful suggestions. Most people suggested
that I save the files as postscript, convert to encapsulated
postscript and then import the plots into Word. Even 
though you can't see them in Word, the plots should come
out if the document is sent to a postscript printer. 

Because I needed to do many plots and needed to be able to 
see them in Word the solution I've ended up using is one 
that fixes the problem in the wmf files output from 
 	
trellis.device(win.printer,file="filename.wmf",format="wmf")

The way to do it is to create a new strip.default function and 
adjust the "y" position in 

do.call("text", c(list(x = 0.5, y = 0.5, labels = strip.names),
par.strip.text))

in the style that you are using in strip.default. With cex=0.5
I found y=0.6 was suitable. 

Granted, this is a hack, but it seems to work.... 

Thanks again to all who responded.
Dale Wilson.

-----------------------------------------------------------------
Dale Wilson					CMIS Environmetrics Project
CSIRO						dale.wilson@cmis.csiro.au
Locked Bag 17 North Ryde 1670		Ph: 61-(0)2-9325 3254
NSW Australia				Fax: 61-(0)2-9325 3200
-----------------------------------------------------------------

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