[R] barplots with no lines around each bar

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Jan 12 14:40:00 CET 2004


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




More information about the R-help mailing list