[R] Plotting matrix rows with lattice graphics?
Deepayan Sarkar
deepayan.sarkar at gmail.com
Tue Mar 25 18:09:42 CET 2008
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
More information about the R-help
mailing list