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

st: RE: two variables in one histogram graph

From   "Nick Cox" <>
To   <>
Subject   st: RE: two variables in one histogram graph
Date   Tue, 10 May 2005 20:06:55 +0100

I can't speak for STATA. In Stata you 
can superimpose histograms using e.g. 

twoway histogram ... || histogram ... 

although the result is often a mess. 
A -dotplot-, a oneway plot, a quantile plot,
etc. can often be much more effective. 

A rather long-winded but nevertheless heartfelt 
discussion appeared in 

Graphing distributions. Stata Journal 4(1): 66--88

a review of official and user-written commands for
graphing univariate distributions; includes tricks
beyond what is obviously and readily available


Seok-Woo Kwon
> I am trying to create a histogram of two variables in the same graph,
> showing the frequency of two variables at each value on 
> X-axis. Is there a way to do this in STATA?

*   For searches and help try:

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