Message-ID: <4FC0A698.8080702@bitwrit.com.au>
Date: 2012-05-26T09:47:04Z
From: Jim Lemon
Subject: How to change width of bar when there are very few bars?
In-Reply-To: <1337999211512-4631427.post@n4.nabble.com>
On 05/26/2012 12:26 PM, Manish Gupta wrote:
> If i assign a vector with same small width for each bar (here) still both are
> same broad. I think it takes ratio for whole area. Is there any other
> parameter to control it.? Any working example will help me.
>
>
Hi Manish,
If you are using the "barplot" function, you probably want to specify
both "width" and "space". If you just want to specify a single number,
look at the "barp" function in the plotrix package, where "width" is the
parameter that controls the width of the bar as a proportion of the
distance between bar centers. Note that you won't get different bar
widths with barp.
Jim