Statalist


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

Re: AW: st: Two bars graph commands


From   Ricardo Ovaldia <[email protected]>
To   [email protected]
Subject   Re: AW: st: Two bars graph commands
Date   Mon, 11 Jan 2010 08:27:34 -0800 (PST)

Thank you.

I tried this before. The problem is that the x-var is string, such as -make- in the auto data.

Ricardo 

Ricardo Ovaldia, MS
Statistician 
Oklahoma City, OK


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

> From: Martin Weiss <[email protected]>
> Subject: AW: st: Two bars graph commands
> To: [email protected]
> Date: Monday, January 11, 2010, 10:14 AM
> 
> <> 
> 
> Like prices in excess of 6,000 (in 1978 bucks...)?
> 
> 
> *************
> sysuse auto, clear
> twoway (bar price weight, lwidth(thick))  /* 
> */ (bar price weight if price>6000, lwidth(thick)) 
> /* 
> */ (scatter price weight if price>6000,  /* 
> */ msymbol(none) mlabel(price) mlabsize(tiny) /* 
> */  mlabposition(12)), yline(6000)
> *************
> 
> 
> 
> HTH
> Martin
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: [email protected]
> [mailto:[email protected]]
> Im Auftrag von Ricardo Ovaldia
> Gesendet: Montag, 11. Januar 2010 17:02
> An: [email protected]
> Betreff: Re: st: Two bars graph commands
> 
> Thank you Martin and Austin,
> 
> What I am trying to do is to label bars that exceed a
> threshold value using
> -blabel()-. I tought that if I could overlay two bar
> graphs, I could do this
> easily. Is there any way to label only bars that are above
> a given y-value?
> 
> Thanks again,
> Ricardo
> 
> Ricardo Ovaldia, MS
> Statistician 
> Oklahoma City, OK
> 
> 
> --- On Mon, 1/11/10, Austin Nichols <[email protected]>
> wrote:
> 
> > From: Austin Nichols <[email protected]>
> > Subject: Re: st: Two bars graph commands
> > To: [email protected]
> > Date: Monday, January 11, 2010, 8:54 AM
> > Ricardo Ovaldia <[email protected]>
> > :
> > Yes, but...
> > The bars will overlap, unless you move them.
> >  ssc install byhist
> > for one solution to a related problem.
> > 
> > On Mon, Jan 11, 2010 at 8:04 AM, Ricardo Ovaldia
> <[email protected]>
> > wrote:
> > > 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?
> > *
> > *   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