Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Stacked Histogram

From   Marcello Pagano <>
Subject   st: Stacked Histogram
Date   Tue, 24 Oct 2006 09:04:26 -0400

Dear Listers,

Has anyone got code for allowing a second, categorical variable into the histogram? What I am thinking of is the freq variable is the primary variable going into the histogram, but there might be a second variable, age, say, categorised as `young' and `old'. Then think of each bar in the histogram displayed as a two colour bar, black and white, say, where the black part represents the proportion of that bar who are young, and the white represents the proportion of that bar who are old. A sort of stacked-bar-meet-histogram kind of plot.


* For searches and help try:

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