r - drawing a scatter plot from two matrices -


i draw scatter plot 2 matrices:

the first matix contains x-values on diagramm , has 1 coluomn.

   [,1] [1,]  3 [2,]  5 [3,]  8 ...   ... 

matrix b has n coloumns , y-values in diagramm:

 [,1] [,2] [,3] ... [1,]  80   85   25  ... [2,]  42   35   57  ... [3,]  81   52   39  ... ...  ...  

first row in matrix b belongs first row in matrix a.

i want draw scatter plot 2 matrices, example value 3 on x-axis want have points on 80,85,25,.. y-axis

how can job?

to expand on roland's comment:

matplot(a, b, type="p")   # "p" default put in highlight possibility of using "l" or "b" 

.... asked for: column of x versus columns of y.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -