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]

Re: st: hbar & labels


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: hbar & labels
Date   Mon, 21 Mar 2011 12:48:04 +0000 (GMT)

--- On Mon, 21/3/11, María Edo wrote:
> I have a horizontal graph bar in which each bar represents
> the total population for a certain age (from 10 to 99 years).
> Labels are too many (10 to 99) and make the graph look
> messy.
> I would like to reduce the number of labels that appear in
> the graph, for instance, only multiples of 5 (10, 15, 20, 
> ....99)

The solution is probably to rephrase the command as a 
-twoway bar- comand:

*--------- begin example ---------
clear
input age totpop
10  100
11  200
12  150
13  300
14  220
15  330
end

twoway bar totpop age, /// 
       ylab(10(5)15)   ///
       xlab(0(100)400) ///
       horizontal
*--------- end example ------------
 
Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------


      

*
*   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/


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