Dear all,
I am trying to construct a bar graph over a
categorical variable with a bar for total over the
categories.
E.g. in the following example, I want an extra
category called "Total" (over the countries listed)
sysuse educ99gdp, clear
generate total = private + public
#delimit ;
graph hbar (asis) public private,
over(country, sort(total) descending) stack percent
title("Spending on tertiary education, by public and
private",
span pos(11))
subtitle(" ")
note("Source: OECD, Education at a Glance 2002",
span) ;
#delimit cr
Thank you in advance!
Anna
PS. Using Stat8/SE
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
*
* 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/