[R] repeating colors in graph 2

James MacDonald jmacdon at med.umich.edu
Thu Oct 23 20:40:43 CEST 2003


I believe you want plot(blah blah, col=palette(rainbow(13)))

HTH,

Jim



James W. MacDonald
Affymetrix and cDNA Microarray Core
University of Michigan Cancer Center
1500 E. Medical Center Drive
7410 CCGC
Ann Arbor MI 48109
734-647-5623

>>> Anna Pryor <anna at email.arc.nasa.gov> 10/23/03 02:19PM >>>
I've tried looking at ?colors and ?palette and if I'm understanding it

correctly, I'm supposed to type in (for example) palette(rainbow(13))
before 
I type in my plot (of 13 lines) if I want 13 different colors.  But
this does 
not work.  Other things that i have tried besides rainbow give me
errors.   
Am I just doing something completely wrong?

Anna

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help




More information about the R-help mailing list