[Bioc-sig-seq] Of Mice and Lattice: twenty chromosomes and 7 automatic colours.

Ivan Gregoretti ivangreg at gmail.com
Fri Mar 12 21:37:55 CET 2010


Hello everybody,

How do you get the lattice package to use more than its 7 standard colours?


Now in little more detail:

I use lattice for plotting, well, everything. Above all, I find it
particularly useful to plot simultaneously a property segregated by
chromosome. One such example of multi-panelled plot would be this

http://dsarkar.fhcrc.org/lattice/book/images/Figure_01_02_stdBW.png

or in a single panel like this

http://dsarkar.fhcrc.org/lattice/book/images/Figure_01_03_stdBW.png

In mouse there are 20 canonical chromosomes. Because lattice has been
set to default to 7 standard colours, each colour is shared by three
different chromosomes. People get confused by that. It seems that
people follow colours rather than legends.

How do I 'reset' lattice to, say, 20 colours?

One example would be highly appreciated. John Steinbeck is excused.

Thank you,

Ivan


Ivan Gregoretti, PhD
National Institute of Diabetes and Digestive and Kidney Diseases
National Institutes of Health
5 Memorial Dr, Building 5, Room 205.
Bethesda, MD 20892. USA.
Phone: 1-301-496-1016
Fax: 1-301-496-9878



More information about the Bioc-sig-sequencing mailing list