s-news
[Top] [All Lists]

[S] Followup to Bug in trellis.set.par()

To: "S-news (E-mail)" <s-news@wubios.wustl.edu>
Subject: [S] Followup to Bug in trellis.set.par()
From: "Steven P. Millard" <steven.p.millard@cwix.com>
Date: Wed, 20 Jan 1999 22:32:20 -0800
Organization: PSI
Reply-to: "smillard@probstatinfo.com" <smillard@probstatinfo.com>
Sender: owner-s-news@wubios.wustl.edu
Hello,

Thanks to Nick Ellis, Marcel Baumgartner, Brian Ripley, Andreas Krause, 
Stephen Smith, and Naomi Robbins for responding to my query about 
trying to use trellis.par.set() with a graphsheet.  They reminded me of 
trellis.device(), which I had forgotten about because I was under the 
mistaken impression that (for the Windows version) graphsheet 
supersedes win.graph, win.printer, trellis.device, etc.  Obviously this 
is not true for trellis.device.

Also, I took the advice of Marcel, Andreas, and Naomi and just created 
the graph as is without fiddling with resizing, then imported it to 
Word, where it is automatically sized to fit the margins.  The plot 
look good!

Thanks to everyone!


Sincerely,

--Steve M.

  _____________
  |    ***    |  Steven P. Millard, Ph.D.
  |     *     |
  | *   *   * |  P robability,      TEL:    206-528-4877
  |   * * *   |  S tatistics &      FAX:    206-528-4802
  |     *     |  I nformation       E-mail: SMillard@ProbStatInfo.com
  |     *     |                     Web:    www.ProbStatInfo.com
  |    ***    |  7723 44th Avenue NE
  |___________|  Seattle, WA 98115-5117 USA


*************Original Query****************************

I'm using S-PLUS 4.5, Release 2.  I'm creating a dot plot to insert 
into a MS Word file.  I'm calling graphsheet() and setting width and 
height to about 4 inches, and setting format="WMF".  Since the figure 
is reduced in size and dotplot is a Trellis function, when I call 
dotplot() I have to go through the usual exercise of setting the cex 
parameter for each label, e.g., xlab=list("x label", cex = 0.5), and 
setting the cex parameter with the scales argument, e.g., scales(cex = 
0.5).  I'd also like to reduce the size of the dots and the width of 
the lines.  I can do this with the following commands:

     trellis.par.set("dot.symbol", list(cex = 0.5, col=2, font=1, 
pch=16))
     trellis.par.set("dot.line", list(col = 16, lty =1, lwd = 1))


The problem I'm having is that I get the following error message when I 
try to use the above commands:

Error in trellis.par.set: Missing value where logical needed:
if(p[i] != q[i]) stop("inconsistent component names")
Dumped


If I don't have a graphics device running and call the dotplot() 
function, a graphsheet window is automatically created on my screen and 
I don't get the above error message when I call trellis.par.set(). 
 This does not do me much good, however, since I want to create a 
Windows Meta File so I have to start a graphics device first.  Does 
anyone know a workaround?  Thanks!!


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

<Prev in Thread] Current Thread [Next in Thread>
  • [S] Followup to Bug in trellis.set.par(), Steven P. Millard <=