Bookmark and Share

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: Plot of horizontal bars in descending order of the percentages of categories of a string variable


From   jose maria pacheco de souza <[email protected]>
To   [email protected]
Subject   st: Plot of horizontal bars in descending order of the percentages of categories of a string variable
Date   Sat, 30 Nov 2013 22:11:42 -0200

Dear Statalisters:
I have a string variable with 10 categories (var1 with a b c d e f g h i
j, say) and want a plot of horizontal bars of their percentages
of occurrence, ordered from greatest to lowest.
I used the  comand *tabhbar var1, rfsort rowpc xla(0(5)35)
t1title(percentage) flipt* written by Nick Cox but would like to enhance the graph putting the percentagens inside the bars and filling the bars with light color.
My Stata versions are 10 and 12.
Thank for advice.
jose maria
--
Jose Maria Pacheco de Souza
Professor Titular (aposentado), Professor Senior
Departamento de Epidemiologia/Faculdade de Saude Publica, USP
Av. Dr. Arnaldo, 715
01246-904  -  S. Paulo/SP - Brasil
fone (11)3768-8612
www.fsp.usp.br/~jmpsouza

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index