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

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

From   "Martin Weiss" <>
To   <>
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)

----- Original Message ----- From: "Marcello Pagano" <>
To: <>
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
*Subject:* Histogram, by(var, total)

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?


(resending, because not sure it worked the first time)
*   For searches and help try:

*   For searches and help try:

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