I encounter this question when I graph hbar. Value labels of my category variable (used as group variable -over(varname)- in bar plot) is very very long, so the resulting plot can not handle them. I have to keep those value labels unchanged because they are meaningful sentences that illustrate respondent's attitude. Can anyone help me out? Thank you very much.
Code:
sysuse citytemp graph hbar heatdd cooldd tempjan tempjuly, over(division) stack gen division2=division label define division2 1 "i don't know" 2 "i don't know either" 3 "i don't kown how to handle this knotty problem" 4 "but are you complaining publicly now?" 5 "you can just take it easy and relax" 6 "maybe take a cup of coffee" 7 "no it will have no use" 8 "make a regular label" 9 "how exactly long this label will be" label values division2 division2 graph hbar heatdd cooldd tempjan tempjuly, over(division2) stack
0 Response to Long categories labels in graph hbar
Post a Comment