-tabplot- and -tableplot- from SSC will do
something similar, arguably better.
But in general the recipe is: work your
way towards a -twoway bar-.
I'll post some example code later.
Nick
[email protected]
Marcello Pagano
> 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:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/