Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

twoway bar [was: Re: st: Features for Stata 14]


From   Scott Merryman <[email protected]>
To   [email protected]
Subject   twoway bar [was: Re: st: Features for Stata 14]
Date   Wed, 4 Sep 2013 11:29:52 -0500

Regarding the first question:  For some reason Stata is setting the
minimum for the yaxis at .5.  If you use -ylabel()- this appears to
correct the problem:

clear
input index proj_red months
1 .4763174 24.46892
2 .7769159 68.40548
3 .7805855 45.94017
end

twoway bar proj_red index , barwidth(.5)  ///
 || bar months index, yaxis(2) barwidth(0.2) ///
 ||  , ylabel(.4(.1).8) xlabel(1(1)3)


The second question is not clear to me

Scott

On Wed, Sep 4, 2013 at 10:38 AM, Yuval Arbel <[email protected]> wrote:
> Clayton,
>
>  I tried the twoway graph based on the following command
>
> twoway bar proj_red index || bar months index, yaxis(2) barwidth(0.2)
>
> and the following data
>
> index proj_red months
> 1 .4763174 24.46892
> 2 .7769159 68.40548
> 3 .7805855 45.94017
>
>
> but there are two problems:
>
> 1. I don't see in the graph proj_red=0.476 for index=1
>
> 2. i would like to have two adjacent bars of proj_red and months for
> index=1, 2, 3 and both with the same length. What I'm getting now is a
> very thick proj_red blue bars.
>
> Are there any remedies to these problems?
>
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index