Digestion plot
1
0
Entering edit mode
Harry Hurd ▴ 60
@harry-hurd-591
Last seen 10.3 years ago
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]]
• 814 views
ADD COMMENT
0
Entering edit mode
Rich Haney ▴ 20
@rich-haney-626
Last seen 10.3 years ago
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.
ADD COMMENT

Login before adding your answer.

Traffic: 447 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6