Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Odd behavior of -graph hbar- with value labels containing apostrophes


From   "daniel waxman" <dan@amplecat.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Odd behavior of -graph hbar- with value labels containing apostrophes
Date   Mon, 3 Sep 2007 22:03:46 -0400

I have run across an interesting problem:

I am trying to make bar graphs over categorical variables, with value
labels, e.g.:

.  graph hbar(mean) satisfied, over(q12)

In this situation, the value labels extend off the edge of the y axis, such
that only a couple of letters appear.


. label list q12
q12:
           1 definitely true
           2 somewhat true
           3 no strong opinion
           4 somewhat untrue
           5 definitely untrue
           6 don't know/refused

If I do the following:

.  label define q12 6 "do not know/refuse", modify
.  graph hbar(mean) satisfied, over(q12)

Then it looks as it should.


If I then go back:

.   label define q12 6 "don't know/refuse", modify
.   graph hbar(mean) satisfied, over(q12)

again the value labels are unreadable.

Is this a known limitation?    Any suggestions for eliminating offending
characters in a large number of value labels?
Thanks in advance.

Dan







*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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