I am trying to draw a bar graph with a gap between sets of bars, as in
the example below. The gap is created with a variable that contains
only missing values.
sysuse auto, clear
gen blank = .
#delimit ;
graph bar rep78 blank headroom gear_ratio,
showyvars
yvaroptions(relabel(1 "Repair record" 2 " " 3 "Headroom" 4 "Gear ratio"))
legend(off)
;
I have two questions about this graph.
1. How can I suppress the drawing of the number 2 under the gap? I
tried "" and " " as labels, with no effect.
2. How can I draw the words "Repair" and "record" on top of each other
instead of next to each other? I tried different combinations of
quotes without success.
Thanks,
Friedrich
*
* 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/