Skip to content

barplots with no lines around each bar

2 messages · Doug Beare, Brian Ripley

#
Hi,
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.
Regards,
Doug Beare.
#
On 12 Jan 2004, Doug Beare wrote:

            
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.]