Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.LNX.4.44.0401121328240.1741-100000@gannet.stats>
Date: 2004-01-12T13:40:00Z
From: Brian Ripley
Subject: barplots with no lines around each bar
In-Reply-To: <1073910836.410.144.camel@pclnx6.marlab.ac.uk>

On 12 Jan 2004, Doug Beare wrote:

> I want to do a barplot with no black lines drawn around each bar and no
> space between each bar. I can do the nospace bit but keep getting black
> line around each bar no matter what I try.
> Ie. for a red bar I want a red border, for a yellow bar a yellow border
> and so on. I've tried everything I can think of but no luck. Any
> suggestions? At the moment I'm using R 5.1 under Redhat Linux 8.

It is a bit difficult for us to help you, as we've only got to R 1.8.1 and
are unskilled in time travel.  But in that version the most obvious thing,
namely

barplot(1:5, space=0, col="red", border="red")

works.  Perhaps it will get broken at some time in the future?

[If perchance you meant R 1.5.1, you are well overdue for an update as
there have been 7 releases since.]

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595