Skip to content

How to plot a matrix with 18 rows by row vs. a vector in a single graph, resulting 18 lines with different colors?

3 messages · Xiao Shi, Spencer Graves, Romain Francois

#
Have you considered "matplot":

matplot(1:3, array(1:6, dim=c(3,2)), type="b")

spencer graves
Xiao Shi wrote:

            
#
Le 11.05.2005 17:26, Xiao Shi a ??crit :
Hello,

matplot(time,t(gene),type="o")

BTW, time is the name of an R function. Choose something else if you 
don't want funny things to happen.

Romain