Re: [R] Problem with a barplot...

From: Steven Hamblin <>
Date: Thu 13 Oct 2005 - 09:15:14 EST


Thanks for the suggestion! It worked great. (I wonder why that isn't documented in the help file for barplot...seems logical to me. <shrug>)


Steven Hamblin

Master of Arts student
Department of Psychology, University of Alberta.
Office: P-319F, Biological Sciences
Phone:  492-6681  e-mail:

On 10/13/05 2:12 AM, "Jim Lemon" <> wrote:

> Steven Hamblin wrote:
>> Hello,
>> I'm having a bit of a problem with a plot, and I'm hoping that someone might
>> be able to help. I'm running the R Cocoa Gui v1.12 on OS X 10.4.2, and I'm
>> doing a stacked bar plot. The plot itself is quite simple:
>> barplot(as.matrix(,main="Strategy when strong", col=strat.col)
>> where is a matrix with a number of rows that define the height
>> of each stacked bar. However, ever since I expanded the number of columns
>> from 100 to 500, the borders of the bars are overwhelming the plot (the bars
>> are proportionally smaller, and thus the colours are getting muddied by the
>> black borders). Changing the border colour doesn't help at all, and I was
>> hoping that there was a way to remove the borders of the bars (i.e. have
>> each bar snug right up against the next). I've tried varying any parameter
>> that seems to have the slightest relation, but no luck.
>> Can someone point how to remove the borders or perhaps suggest an equivalent
>> way to do this with another function? I would appreciate any and all help.
> Hi Steven,
> Try border=NA (not explained in the barplot help page, but elsewhere).
> Jim
______________________________________________ mailing list PLEASE do read the posting guide!
Received on Thu Oct 13 09:24:20 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:49:33 EST