You can change the x-values so the bars overlap, or change the barw()
option so they overlap, or some combination of the two. Is that not
what you had in mind?
. sysuse sp500, clear
. twoway bar high date in 1/4, yla(1300(20)1340) barw(1.5)
. replace date= date+(2-_n)/3 in 1/4
. twoway bar high date in 1/4, yla(1300(20)1340)
On 3/8/06, Hiroshi Maeda <[email protected]> wrote:
> Hi Statalisters,
>
> I've been experimenting with and comparing -graph bar- and -graph twoway
> bar- commands for some time. I've noticed that -graph bar- has a
> -bargap- option, whereby one can control a gap between bars defined by
> multiple y-variables. I find the ability of -bargap- to make adjacent
> bars overwrap each other (e.g. -bargap(-50)-) very attractive. Although
> I find the -graph twoway bar- more flexible, I haven't found its
> equivalent of -bargap- in the Graphics manual.
>
> Here is my question:
> Is there any way to implement the -bargap- option available in the
> -graph bar- command in the -graph twoway bar- command?
>
> Thank you in advance. ---Hiroshi
>
> --
> Hiroshi Maeda
> University of Illinois at Chicago
> [email protected]
>
> *
> * For searches and help try:
> * http://www.stata.com/support/faqs/res/findit.html
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/