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: FW: stacked bars + dot
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: FW: stacked bars + dot
Date
Tue, 15 Jan 2013 16:02:29 +0000
The second should be easy. You need to spell out -xla(, valuelabel)-.
The first requires construction of a variable with the order you need.
Nick
On Tue, Jan 15, 2013 at 3:57 PM, Rubil Ivica <[email protected]> wrote:
> Now I get numbers instead of county names on the horizontal axix.
> In addition, I need that bars be ordered by totaleffect in ascending order.
Nick Cox
> If you want to combine bars and dots, then I think you will need
> -twoway-. As you have a string variable too, you will need to -encode-
> that before it can be plotted on one axis.
>
> Nick
>
> On Tue, Jan 15, 2013 at 3:18 PM, Rubil Ivica <[email protected]> wrote:
>
>> I forgot one more thing: on the horizontal axis I want the string variable county to be displayed.
>
> Rubil Ivica
>
>> I need to produce the following graph.
>> There are three numerical variables: contrib1, contrib2, totaleffect.
>> And one string variable: county
>> I want that the variables contrib1 and contrib2 be displayed as stacked bars, and that the variable totaleffect, which is the sum of contrib1 and contrib2, be displayed as a dot on the stacked bars.
*
* 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/