[R] How can I draw bars
jim at bitwrit.com.au
Wed Dec 10 09:48:58 CET 2008
Raymond Balise wrote:
> 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.
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.
More information about the R-help