Statalist


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

RE: st: St: Simple (?) hbar question


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: St: Simple (?) hbar question
Date   Sun, 12 Oct 2008 16:21:19 +0100

-lstack- is on SSC. 

Nick
n.j.cox@durham.ac.uk 

Scott Merryman

Left of the default of bar labels:
  graph hbar (mean) trunk turn  mpg , scheme(s1mono) legend(off)
blabel(name ,pos(inside))

Left end of the bars:
  graph hbar (mean) trunk turn  mpg , scheme(s1mono) legend(off)
blabel(name ,pos(base))

If you mean the name of variable and not the label "mean of ..." then
use the -nolabel- option with the -blabel()- option.

Another way: left of the categorical axis (using Nick's -lstack-):
  sysuse auto,clear
  lstack trunk turn mpg, into(var) clear
  graph hbar (mean) var , over(_stack) scheme(s1mono) legend(off)

On Fri, Oct 10, 2008 at 4:38 PM, Eric Uslaner <euslaner@gvpt.umd.edu>
wrote:

  I want to put the variable labels on the left of a graph hbar and
typed:
>
> graph hbar (mean) *clump, scheme(s1mono) legend(off)
>
> for a series of variables named xxxclump.  I get bars but no labels on
the left.  I have done this before, but alas I cannot reproduce the
labels on the left that I generated earlier. 

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index