Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: problem with labels of multiple over()s in graph hbar
From
Dino Gibertoni <[email protected]>
To
<[email protected]>
Subject
st: problem with labels of multiple over()s in graph hbar
Date
Tue, 6 Mar 2012 13:44:22 +0100
dear statalisters,
I have to produce several hbar charts where I want to stack the
ordinal answers to 5 different items, each of them categorized for
another variable.
It all works fine when this last categorical variable has only two
classes. If I take the same code and change only the reference to the
variable, using a variable with 3 classes, the labels of the 2 -over-
variables overlap.
This is the piece of code related to the graph, where PRESIDIO is the
3-class variable:
graph hbar (mean) D2_1-D2_5, over(PRESIDIO, label(labs(vsmall)) gap(*.6)) ///
over(j, relabel(1 `" "dagli operatori della" "sua U.O." "' ///
2 `" "dagli operatori
del" "Dip.to Chirurgico" "' ///
3 `" "dai membri della
sua" "categoria prof.le" "' ///
4 `" "dallo staff della"
"Direzione Aziendale" "' ///
5 "dai cittadini/utenti")
label(labs(small)) ) ///
stack scheme(sj) percentages cw nolabel graphr(c(white)) ///
ylabel(0 20 "20%" 40 "40%" 60 "60%" 80 "80%" 100 "100%") ytitle("") ///
legend(rows(1) symx(*.4) span tsty(smbody) nobox ///
label(1 "per nulla") label(2 "poco") label(3 "abbastanza") label(4
"molto") label(5 "moltissimo")) ///
I'm inclined to think that this could be a bug; does someone have any
suggestion?
Thanks for your attention,
--
Dino Gibertoni
Dipartimento di Medicina e Sanità Pubblica - Alma Mater Studiorum
Università di Bologna
Via San Giacomo, 12 - 40126 Bologna Italia
*
* 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/