Plotting matrix rows with lattice graphics?
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