Hi Marc,
You answered my question in depth, leaving me to go with another solution.

Thank you for the detailed answer!
Best,
Tal



----------------Contact
Details:-------------------------------------------------------
Contact me: Tal.Galili@gmail.com |  972-52-7275845
Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
www.r-statistics.com/ (English)
----------------------------------------------------------------------------------------------




On Tue, Dec 8, 2009 at 10:38 PM, Marc Schwartz <marc_schwartz@me.com> wrote:

>
> On Dec 8, 2009, at 2:26 PM, Tal Galili wrote:
>
>  Is it possible?
>> I was hoping to find something like:
>> lwd
>> for the different bars in the barplot but couldn't find it.
>> Does it exist ?
>>
>> Thanks,
>> Tal
>>
>
>
>
> barplot() calls rect() via a wrapper function internally to draw the
> rectangles. rect() uses par("lwd") to define the line widths by default:
>
>  par(mfrow = c(2, 1))
>
>  barplot(1:5)
>
>  par(lwd = 3)
>
>  barplot(1:5)
>
>
> If you wanted to define the widths of the lines on a per bar basis, you
> would need to manually create the bars using rect() directly, since there is
> no other way that I can see to pass a vector of line widths as the code is
> presently implemented.
>
> You might want to look at the barchart() function in lattice to see if
> there is more functionality there.
>
> HTH,
>
> Marc Schwartz
>
>

	[[alternative HTML version deleted]]


