Message-ID: <eb555e660803251009q636f659bk7237d9d91783fca7@mail.gmail.com>
Date: 2008-03-25T17:09:42Z
From: Deepayan Sarkar
Subject: Plotting matrix rows with lattice graphics?
In-Reply-To: <7fdadb8a0803251004m5474fe2fnf2d462b8c75a46e2@mail.gmail.com>
On 3/25/08, Ron Bonner <arbi56 at gmail.com> wrote:
> Thanks Henrique - that didn't exactly solve my problem but gave me enough to
> do so!
>
> In your solution each row is plotted as a vertical row of points at the
> value of 'ind' while I wanted to plot the values against the column numbers,
> i.e. 1 to 5.
>
> The solution was to create a vector of column numbers, replicate it and plot
> against it, still using 'ind' as the conditioning variable:
Also, take a look at ?as.data.frame.table, which should help you
create a suitable data frame directly.
-Deepayan