s-news
[Top] [All Lists]

Re: [S] Trellis strip and trellis.par.set

To: "Hsu, Chyi-Hung" <Hsu_C@Ricerca.com>
Subject: Re: [S] Trellis strip and trellis.par.set
From: Jack Lewis <jlewis@rsl.psw.fs.fed.us>
Date: Fri, 24 Jul 1998 13:07:44 -0700
Cc: "'s-news@wubios.wustl.edu'" <s-news@wubios.wustl.edu>
Organization: PSW Redwood Sciences Lab, U.S. Forest Service
References: <360F164553EAD011AA1A0000F80368CC4B1F93@ash.ricerca.com.10.in-addr.arpa>
Reply-to: jlewis@rsl.psw.fs.fed.us
Sender: owner-s-news@wubios.wustl.edu
Hsu, Chyi-Hung wrote:

> Dose anyone know how to make the background of the trellis strip
> transparent?  .....

The following function appeared on S-news awhile ago:

"trellis.strip"<-
function(b = 0, s = 0)
{
# Sets trellis parameters for strip colors
# Default will eliminate shading from trellis strips
# Use trellis.strip(5,12) for trellis defaults
 if(is.null(attr(get(".Device", where = 0), "trellis.settings"))) stop(
   "Current device is not a trellis device")
 s.b <- trellis.par.get("strip.background")
 s.b$col[1] <- b
 trellis.par.set("strip.background", s.b)
 s.s <- trellis.par.get("strip.shingle")
 s.s$col[1] <- s
 trellis.par.set("strip.shingle", s.s)
}
--
Jack Lewis                           Redwood Sciences Laboratory
707-825-2929 voice                   Pacific Southwest Research Station
707-825-2901 fax                     USDA Forest Service
jlewis/psw_rsl@fs.fed.us             http://www.rsl.psw.fs.fed.us

           --------------------------------------------
Thought must be divided against itself before it can come to any
knowledge of itself.                             (Aldous Huxley)


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