Skip to content
Prev 69524 / 398525 Next

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

Have you considered "matplot":

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

spencer graves
Xiao Shi wrote: