Statalist The Stata Listserver


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

st: Stacked Histogram


From   Marcello Pagano <[email protected]>
To   [email protected]
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.

Thanks,

m.p.
*
* 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