Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: "total" bar for bar chart


From   Friedrich Huebler <[email protected]>
To   [email protected]
Subject   st: Re: "total" bar for bar chart
Date   Wed, 21 Jul 2004 06:20:14 -0700 (PDT)

Clint,

You can generate additional variables for the ten categories. The
example below shows how to do this with the auto data, using two
categories plus the total.

. sysuse auto
. gen mpgd = mpg if foreign==0
. gen mpgf = mpg if foreign==1
. graph hbar mpgd mpgf mpg, legend(lab(1 "Domestic") lab(2 "Foreign")
lab(3 "Total"))

Friedrich Huebler

--- [email protected] wrote:
> I am using Intercooled, version 8.2.  I am generating a
> horizontal bar (mean) chart w/ ten bars and I want an eleventh
> bar to denote the total across the ten categories, e.g. the
> grand mean.


	
		
__________________________________
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/
*
*   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