From deepayan.sarkar at gmail.com  Wed Feb 13 20:47:06 2008
From: deepayan.sarkar at gmail.com (Deepayan Sarkar)
Date: Wed, 13 Feb 2008 11:47:06 -0800
Subject: [Rd] Surprising behaviour of levelplot in lattice package
In-Reply-To: <eb555e660802131144t72d31cdbkb3c264466ce798a9@mail.gmail.com>
References: <47B3181C.3090508@ebi.ac.uk>
	<eb555e660802131144t72d31cdbkb3c264466ce798a9@mail.gmail.com>
Message-ID: <eb555e660802131147o139708f2q5e7a846f075e3a2a@mail.gmail.com>

On 2/13/08, Deepayan Sarkar <deepayan.sarkar at gmail.com> wrote:
> On 2/13/08, Wolfgang Huber <huber at ebi.ac.uk> wrote:
> > Hi Deepayan,
> >
> > levelplot from the lattice package produces a peculiar output when
> > called on a matrix whose column or row names contained duplicated
> > elements. In particular, the plot contains white stripes, and the
> > arrangement of data regions and axes labels seems messed up. I did not
> > see this documented (my apologies if this is an oversight) and guess
> > that it is unintended:
>
> Yes, the current design does not anticipate the possibility of
> duplicated row and column names. A fix may or may not be simple; I
> will look into it.

Actually, the fix should be easy. A workaround is

levelplot(m, ylim = colnames(m), xlim = rownames(m))

-Deepayan



[Rd] Surprising behaviour of levelplot in lattice package
Deepayan Sarkar