Hello,
As I am new to the use of R, could someone give a hint on how we can
label (color will do) the digestion plots for a collection of arrays.
Thanks much.
Harry Hurd
Dept of Statistics
University of North Carolina
[[alternative HTML version deleted]]
If you are not using AffyRNGdeg and are just plotting your own data,
one
example involving use of color is "plot(1:10,col=2);
lines(2:11,col=3)". If
you type col2rgb(2) or col2rgb(1:10), you will verify that the color
you see
is in fact the RGB triplet ( 255, 0, 0 ). You might want to check out
the
reference manual sections on items such as "col2rgb", and "lines".
Assuming you are using AffyRNAdeg, you might see that it can take a
named
"cols" parameter to let you supply a vector of colors, such as 1:10.
Cols
is used in the AffyRNAdeg routine as follows:
...
for (i in 1:dim(mns)[1]) lines(0:((dim(mns)[2]-1)), mns[i,
],col=cols[i])
So if you are using AffyRNAdeg, you can just pass an extra named
parameter
using "cols=". If you are new to R, just set that named parameter to
1:10,
for example.