[6244] in s-news-athena

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

Re: Trellis parameter setting

daemon@ATHENA.MIT.EDU (shyu@research.att.com)
Mon Jan 23 17:40:24 1995

From: shyu@research.att.com
Date: Mon, 23 Jan 95 16:37 EST
To: s-news@utstat.toronto.edu

Paul Gessler (paulg@cbr.soils.csiro.au) wrote :

> I am using xyplot to create conditioning plots and am
> calling panel.superpose twice to plot two different factor
> groupings.  I see how the superpose.symbol list can be copied 
> with the trellis.par.get to see what the current settings are 
> but I DON'T understand how to change the current settings so that
> they are used in my panel displays.  
> 
> I want to use different pch symbols (change the superpose.symbol$pch
> list) for each factor group in the first call to panel.superpose.  
> I then want to use a single line type to join points belonging to a 
> second factor grouping in the second call to panel.superpose.  This
> second factor has a large number of factor groupings therefore I 
> also need to change the length of the superpose.line list (if I 
> interpret the error message correctly).

There are a few parameter definitions in the trellis library, each 
corresponds to a different device, for example :

trellis.settings.bw (B&W postscript)
trellis.settings.color (screen or color postscript)

You can always maintain your OWN copy of these settings in your working
.Data directory, for example :

> trellis.settings.color <- trellis.settings.color
> find(trellis.settings.color)
[1] ".Data"
> trellis.settings.color$superpose.line <- list(lwd=1:20, lty=1:20, col=1:20)
> trellis.device(postscript, color=T)

This changes the default superpose.line parameters before starting the
color postscript device.

(trellis.device will grab the correct settings for different devices ...)

In future release of Trellis, the mechanism for changing parameter settings
may be different.      

Ming

 o=======================================================================o
 | Ming-Jen Shyu (Ming)                 INTERNET:  shyu@research.att.com |
 | AT&T Bell Laboratories, Room 2C-263  UUCP:      attmail!research!shyu |
 | 600 Mountain Avenue                  office:    (908) 582-6863        |
 | Murray Hill, NJ 07974-2070, USA      fax:       (908) 582-3340        |
 o=======================================================================o

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