Re: [R] Plotting matrix rows with lattice graphics?

From: Deepayan Sarkar <deepayan.sarkar_at_gmail.com>
Date: Tue, 25 Mar 2008 10:09:42 -0700

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



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 25 Mar 2008 - 17:13:01 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 25 Mar 2008 - 17:30:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive