Tuesday, February 22, 2011

R matlines / matplot - plot multiple lines

Plot multiple lines


> exprs(esetr)[1:5,]
             Sample_22 Sample_23 Sample_20 Sample_21 Sample_16 Sample_17
1428537_at      11.560    11.430    11.730    11.580    10.150    11.480
1426543_x_at     6.043     6.086     6.098     6.296     6.233     6.320
1439128_at       8.088     7.994     8.040     7.894     8.547     8.031

> plot(...)

> matlines(t(exprs(esetr)[1:5,]))

or

> matplot(t(exprs(esetr)[1:5,]))