[R] plot matrix

From: Marek Bartkuhn <Marek.Bartkuhn_at_gen.bio.uni-giessen.de>
Date: Thu, 14 Feb 2008 18:02:06 +0100

Dear R users,

I like to plot a matrix A which looks like this:

        ,1 ,2 ,3 ,4

1,	1		10		100		1000
2,	0.5		0.2		1.0		4.3
3,	0.1		0.2		0.3		0.5


where the 1st row is representing the X-axis values. The subsequent rows should be plotted on the y-axis. I would prefer to use the smoothScatter plotting function of the geneplotter package, but to begin with R I'd be happy to use any scatterplot with the given dataset provided in the matrix A.

So I tried:




both result in :

Error in xy.coords(x, y, xlabel, ylabel, log) :

   'x' and 'y' lengths differ

What do I have to do?


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 Thu 14 Feb 2008 - 17:07: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 Thu 14 Feb 2008 - 18:30:13 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