[R] How to plot a matrix

From: ss <affysnp_at_gmail.com>
Date: Sun, 01 Jun 2008 13:41:23 -0400


Hi list,

If I have a matrix,

> a<-read.table("a.txt",header=TRUE,row.names=1)
> dim(a)
[1] 4 3
> a

   x y z
a1 1 6 3
a2 2 6 3
a3 2 3 8
a4 5 3 4
>

Can you suggest how to produce a plot like the one attached here? Basically, I want to plot each sample (each column) using the dots one by one and also have the average value of each column indicated?

Thank you so much and have a wonderful weekend!

Allen



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 Mon 02 Jun 2008 - 05:12:55 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 Mon 02 Jun 2008 - 05:30:36 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