[R] Lattice: it seems, a bug in draw.key function
Deepayan Sarkar
deepayan at stat.wisc.edu
Fri May 20 16:55:37 CEST 2005
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
More information about the R-help
mailing list