Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Re: Histogram, by(var, total)


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: Histogram, by(var, total)
Date   Sat, 6 Jun 2009 22:44:06 +0200

<>
You can always accomplish this manually...

**********
sysuse auto, clear

hist mpg, name(total, replace)/*
*/ nodraw title(total)

hist mpg if for, /*
*/ name(for, replace) /*
*/ nodraw title(foreign)

hist mpg if !for, /*
*/ name(dom, replace) /*
*/ nodraw title(domestic)

graph combine total/*
*/ for dom, holes(3)
**********


HTH
Martin
_______________________
----- Original Message ----- From: "Marcello Pagano" <pagano@hsph.harvard.edu>
To: <statalist@hsphsun2.harvard.edu>
Sent: Saturday, June 06, 2009 4:58 PM
Subject: st: Histogram, by(var, total)


For Marie:

*From:* Thoma, Marie E.
*Sent:* Saturday, June 06, 2009 12:33 AM
*To:* statalist@hsphsun2.harvard.edu
*Subject:* Histogram, by(var, total)

Hello,
I would like to use the "histogram yvar, by(xvar, total)" command to produce a histogram of the total and stratified variable. However, in Stata, it places the "total" graph as the last graph and I would like to have it as the first graph (before the stratified graphs). Does anyone know how to change this either using this command or another way to accomplish this same layout?

Thanks,
Marie

(resending, because not sure it worked the first time)
*
*   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/


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index