[19086] in s-news-athena

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

[S] Variables into panel=function()

daemon@ATHENA.MIT.EDU (Robert Key)
Wed Sep 1 16:10:29 1999

Message-Id: <37CD86EA.3A06CF6@princeton.edu>
Date: Wed, 01 Sep 1999 16:04:58 -0400
From: Robert Key <key@princeton.edu>
Mime-Version: 1.0
To: s-news@wubios.wustl.edu
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


I'm having difficutly getting variables into a trellis panel function.
Specifically
I have a function that uses the "panel.loess" function. I would like to
be able to
change the values of the span, degree and family variables, but haven't
been able
to do so. All of the examples I have found always have these "hard
wired". A small
portion of my function follows. The span, family and degree are carried
into the
function in the original call.

Any help greatly apprecaited.
thx
bob

		tmp_xyplot(prop~x|legname,
			xlab=list(xlable,cex=1.5),
			ylab=list(ylable,cex=1.5),
			main=list(paste(toplable,"; Mean Difference = ",
				round(delta[1],nodig),"+/-",round(delta[2],nodig),
				sep=""),cex=1.5),
			groups=station,pch=mysym,col=superpose.symbol$col,
			par.strip.text=list(cex=1.5),
			strip=function(...) strip.default(...,style=1),
			data=cdf,
			panel=function(x,y,...){
				panel.superpose(x,y,...)
				if(length(x)>=7)
					panel.loess(x,y,span=span,
						family=family,degree=degree)
				else
					panel.xyplot(x[order(x)],y[order(x)],type="l")},
			key=list(
				space="right",
				columns=1,border=2,
				points=Rows(superpose.symbol,1:nosta),
				text=list(junk)
				)
			)
-----------------------------------------------------------------------
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

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