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 ----------------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) ---------------------------------------------------------------------------------------------- [[alternative HTML version deleted]]
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, > Talbarplot() 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
On Dec 8, 2009, at 3: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 ??box> > Thanks, > Tal >-- David Winsemius, MD Heritage Laboratories West Hartford, CT