Statalist


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

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


From   "Scott Merryman" <scott.merryman@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: St: Simple (?) hbar question
Date   Fri, 10 Oct 2008 17:47:49 -0500

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)


Scott


On Fri, Oct 10, 2008 at 4:38 PM, Eric Uslaner <euslaner@gvpt.umd.edu> wrote:
> Greetings,
>
> I've spent two hours on what should be a simple issue--reading and rereading the manual and the help files.  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.  Any suggestions would be most welcome.
>
> Thanks,
>
> Ric Uslaner
*
*   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