Skip to content
Prev 274870 / 398506 Next

Simple color strip

On 19/10/2011 10:32 AM, Brian Smith wrote:

        
On 19/10/2011 10:32 AM, Brian Smith wrote:
barplot(rep(1, 6), col=myCols, axes=FALSE)

There are other options to barplot if you want the bars horizontal, 
without spacing, etc.

Putting it in a pdf is simple:  just open the pdf() device before you 
draw, and close it afterwards.

Duncan Murdoch