[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Stacked Histogram
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/