Skip to content

How can I draw bars

3 messages · Raymond Balise, stephen sefick, Jim Lemon

#
I need to make a graphic to show problems on different parts of
chromosomes (think of a graphic showing the number of frayed threads
as colors along different parts of a worn out rope).  I want to draw
bars going from left to right across a page and color different parts
of the bars in different shades.  Each graphic will need to have
several bars of different lenghts corresponding to the different
lenghts of the chromsomes.

Is there a package around that can help me draw custom bars of
different colors?  I am a hardcore SAS guy who is just learning R so I
am mostly clueless.
#
arrows and I don't remember what package, but I will see if I can remember.
On Tue, Dec 9, 2008 at 3:02 PM, Raymond Balise <iteachtyping at gmail.com> wrote:

  
    
#
Raymond Balise wrote:
Hi Raymond,
The gradient.rect and color.scale functions (in plotrix) may not do 
exactly what you want, but the code within them is almost certainly 
relevant to your problem.

Jim