s-news
[Top] [All Lists]

Re: Formatting trellis graphics

To: s-news@lists.biostat.wustl.edu, jreid@myriad.com
Subject: Re: Formatting trellis graphics
From: "Greg Snow" <greg.snow@ihc.com>
Date: Tue, 23 Aug 2005 10:25:45 -0600
You need to print the trellisplot and use the options to 
print.trellis (see the help for print.trellis for one set of 
examples).  The split argument is most similar to the 
traditional par(mfrow=c(2,2)), but the position argument
gives more flexibility.  Also dont forget to set the more
argument.  An example:

> trellis.device()
> x <- runif(100)
> y <- runif(100)
> xyplot(y~x)
> print(xyplot(y~x), position=c(0,0,.5,1),more=T)
> print(xyplot(x~y), position=c(.5,.5,1,1),more=F)

hope this helps,

Greg Snow, Ph.D.
Statistical Data Center, LDS Hospital
Intermountain Health Care
greg.snow@ihc.com
(801) 408-8111

>>> Julia Reid <jreid@myriad.com> 08/23/05 10:18AM >>>
Since we're on the subject of trellis graphics, I have never been able

to plot more than one graph on a page as I can do with regular Splus 
graphs by using par(mfrow=c(2,2)). I would like to be able to plot 
separate graphs, not just panels for different factor levels. Trellis 
graph seems to ignore the par mfrow parameter.
If anyone knows how to do this, I would love to know.
Thank you.
Julia Reid
--------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news


<Prev in Thread] Current Thread [Next in Thread>