Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: creating bar charts


From   Scott Cunningham <[email protected]>
To   [email protected]
Subject   Re: st: creating bar charts
Date   Fri, 24 Mar 2006 13:40:56 -0500


Secondly, I wanted to make an xtitle, showing the reader that age was along the xaxis in five-year brackets, but when I included an - xtitle(Age)- I got an error. Any ideas?
For instance, here was my code:

. graph bar (asis) SexRatio, over(race) over(age) bargap(.80) legend ( label(1 "White") label(2 "Black") ) xtitle(Age) ytitle(Sex Ratio) title(Racial Dynamics in the U.S. Sex Ratio) note("Source: 2000 Census longform Summary File")

yet, I saw in the help for axis titles that xaxis is an option, so I'm not sure what I did incorrectly here. sc
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index