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]

RE: st: graph bar with 2 y-axes


From   Kayla Bridge <[email protected]>
To   "[email protected]" <[email protected]>
Subject   RE: st: graph bar with 2 y-axes
Date   Tue, 10 Sep 2013 10:39:07 +0000

Thank you, Nick. I got the desired result. 

Best,
kayla

----------------------------------------
> Date: Tue, 10 Sep 2013 11:19:14 +0100
> Subject: Re: st: graph bar with 2 y-axes
> From: [email protected]
> To: [email protected]
>
> -graph bar- by defaults shows means and it is hardly surprising that
> the means of -wage- and -collgrad- are not similar in magnitude.
>
> In practice, you would be better off with -twoway bar- after
> -collapse-. You might still need to multiply up -collgrad- by some
> large factor, but you can have two y axes and make sure that the axis
> labels tell the truth.
>
> Nick
> [email protected]
>
> On 10 September 2013 10:18, Kayla Bridge <[email protected]> wrote:
>
>> I use the following commands to graph a bar chart.
>> graph bar wage collgrad, over(race)
>>
>> The graph I got has the collgrad being shown almost at same height, due to the fact that the collgrad and the wage share the same scalling of y-axis. So, I try to add another y-axis on the right of the graph with collgrad's scalling being labelled. But I do not know how to realize this. (-graph combine- is simply to combine two graphs in one page, and this is not what I want.)
>
> *
> * 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/ 		 	   		  
*
*   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