Re: [R] Lattice: it seems, a bug in draw.key function

From: Deepayan Sarkar <deepayan_at_stat.wisc.edu>
Date: Sat 21 May 2005 - 00:55:37 EST

On Friday 20 May 2005 10:05 am, Wladimir Eremeev wrote:
> Dear Deepayan,
>
> I suggest something like
>
> pointsGrob(
> x=if(key$divide>1){(1:key$divide-1)/(key$divide-1)} else 0.5,
> [blah-blah-blah]
> )
>
> This looks like your 3rd variant.
>
> However, I haven't try very hard to verify my solution.
>
> I tried to redefine the entire function draw.key in my working environment,
> but this didn't work.
>
> I use R 2.1.0 on windows 2000, packages are precompiled binaries.
> Am I right in thinking, that despite the presence of my function
> draw.key, xyplot used the function, defined in the package?

Yes. It has to do with namespaces. Try ?assignInNamespace

Deepayan



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat May 21 01:24:17 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:58 EST