Olena Morozova
2007-Sep-26 17:46 UTC
[R] plot rows of matrix against a vector on one graph
I am very new to R and statistical analysis in general. I am trying to plot a matrix of several hundred rows against a vector of 4 values. This all has to be on the same graph with different rows represented by different color. This sounds like it should not be hard to do, but I am having problems with it. Could someone please help? Any advice appreciated!!! Thank you for your time Olena [[alternative HTML version deleted]]
On 26.09.2007, at 13:46, Olena Morozova wrote:> I am very new to R and statistical analysis in general. I am trying > to plot > a matrix of several hundred rows against a vector of 4 values. This > all has > to be on the same graph with different rows represented by > different color. > This sounds like it should not be hard to do, but I am having > problems with > it. Could someone please help? >In fact this sounds hard to me, because you cannot perceive "several hundred" different colors in the same plot. :) Did you mean columns instead of rows? Maybe you could specify a little more what kind of plot you intend. How does your data look like? Do you intend to plot each of the several hundred values against the same vector with 4 values or do you have a several hundred by 4 matrix? Without knowing these thing it is difficult to help you. Regards, Wiebke
Reasonably Related Threads
- How to plot a matrix with 18 rows by row vs. a vector in a single graph, resulting 18 lines with different colors?
- R for MacOSX - History and command line problems
- Match numeric vector against rows in a matrix?
- R syntax, space smaller than space
- Strange behaviour of lars method