[R] how to plot multi- lines on one diagram

liu qin liuqincn at yahoo.com
Sun Feb 22 20:58:49 CET 2004


Hello there:

I got a matrix as data1, I do need to plot each column
and illustrate them as 4 lines on the same screen.

Would anybody help me out please?

> data1
       [,1]  [,2]  [,3]   [,4]
 [1,] 94.35 60.89 33.12 0.1001     	
 [2,] 94.17 60.53 32.76 0.1003			
 [3,] 94.35 61.80 34.74 0.0980
 [4,] 95.45 65.99 38.74 0.0910
 [5,] 95.82 69.44 38.38 0.0859
 [6,] 95.64 68.72 42.19 0.0903
 [7,] 94.35 69.28 43.11 0.2931
 [8,] 94.19 68.73 43.27 0.0980
 [9,] 93.82 65.81 38.36 0.1357
 [10,] 92.90 63.81 39.28 0.1353	

Thank you very much indeed,

Qin Liu

Northumbria University




More information about the R-help mailing list