s-news
[Top] [All Lists]

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

To: "S-news (E-mail)" <s-news@wubios.wustl.edu>
Subject: [S] Bug in trellis.set.par()
From: "Steven P. Millard" <steven.p.millard@cwix.com>
Date: Tue, 19 Jan 1999 15:25:19 -0800
Cc: "MathSoft (E-mail)" <support@statsci.com>
Organization: PSI
Reply-to: "smillard@probstatinfo.com" <smillard@probstatinfo.com>
Sender: owner-s-news@wubios.wustl.edu
Hello,

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


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

-----------------------------------------------------------------------
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] Bug in trellis.set.par(), Steven P. Millard <=