Statalist


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

AW: st: AW: Two bars graph commands


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   AW: st: AW: Two bars graph commands
Date   Mon, 11 Jan 2010 15:42:38 +0100

<> 

I am not sure whether I understand, either. The ordering along the x-axis is
arbitrary with a -string- variable such as "make":


*************
sysuse auto, clear
encode make, generate(mymake)
twoway (bar weight mymake if foreign) (bar weight mymake if !foreign),
legend(off)
*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Ricardo Ovaldia
Gesendet: Montag, 11. Januar 2010 15:30
An: [email protected]
Betreff: Re: st: AW: Two bars graph commands

Thank you Martin but I am not sure that I understand.

For example I want something like this:

graph (bar  weight, over(make)) (bar if weight foreign==1, over(make))

I know that this example makes little sense, but it captures the idea.

Ricardo


Ricardo Ovaldia, MS
Statistician 
Oklahoma City, OK


--- On Mon, 1/11/10, Martin Weiss <[email protected]> wrote:

> From: Martin Weiss <[email protected]>
> Subject: st: AW: Two bars graph commands
> To: [email protected]
> Date: Monday, January 11, 2010, 7:17 AM
> 
> <> 
> 
> It is fairly easy to check with the -recast()- option.
> 
> *************
> sysuse auto, clear
> tw (sc turn we, recast(bar) lwidth(thick)) (sc mpg we,
> recast(bar)
> lwidth(thick))
> *************
> 
> 
> 
> HTH
> Martin
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: [email protected]
> [mailto:[email protected]]
> Im Auftrag von Ricardo Ovaldia
> Gesendet: Montag, 11. Januar 2010 14:05
> An: [email protected]
> Betreff: st: Two bars graph commands
> 
> Hello,
> 
> Is there a way to get two bar commands on the same graph.
> Something similar
> to -graph twoway (scatter y x ....) (scatter y1 x ....)-
> but with bars?
> 
> Thank you in advance,
> Ricardo 
> 
> 
> Ricardo Ovaldia, MS
> Statistician 
> Oklahoma City, OK
> 
> 
> 
> 
>       
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/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/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/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/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index