Thank you
Okay, but how do I get it to label with the make values and not the encoded ones?
Ricardo Ovaldia, MS
Statistician
Oklahoma City, OK
--- On Mon, 1/11/10, Martin Weiss <[email protected]> wrote:
> From: Martin Weiss <[email protected]>
> Subject: AW: AW: st: Two bars graph commands
> To: [email protected]
> Date: Monday, January 11, 2010, 10:33 AM
>
> <>
>
> " Then -encode- is beforehand:"
>
> ... -encode- _it_ beforehand, of course
>
>
>
> HTH
> Martin
>
>
> -----Ursprüngliche Nachricht-----
> Von: [email protected]
> [mailto:[email protected]]
> Im Auftrag von Martin Weiss
> Gesendet: Montag, 11. Januar 2010 17:31
> An: [email protected]
> Betreff: AW: AW: st: Two bars graph commands
>
>
> <>
>
> Then -encode- is beforehand:
>
> *************
> sysuse auto, clear
> encode make, gen(mymake)
> twoway (bar price mymake, lwidth(thick)) /*
> */ (bar price mymake if price>6000, lwidth(thick))
> /*
> */ (scatter price mymake if price>6000, /*
> */ msymbol(none) mlabel(price) mlabsize(tiny) /*
> */ mlabposition(12)), yline(6000) legend(off)
> *************
>
>
>
> HTH
> Martin
>
>
> -----Ursprüngliche Nachricht-----
> Von: [email protected]
> [mailto:[email protected]]
> Im Auftrag von Ricardo Ovaldia
> Gesendet: Montag, 11. Januar 2010 17:28
> An: [email protected]
> Betreff: Re: AW: st: Two bars graph commands
>
> 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/
>
>
> *
> * 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/