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

st: How to make this graph?

From   FF NN <[email protected]>
To   [email protected]
Subject   st: How to make this graph?
Date   Wed, 15 Oct 2003 13:36:08 -0700 (PDT)

Greetings Statalists,
I want to draw a somewhat tricky graph, at least for
me. I have a variable "occu_before" recording people's
occupations before some time, with the range coded
from 1 to 9; and another variable "occu_after"
recording people's occupations after some time, with
the range coded from 1 to 9 as well.
Now I want to make a bar graph, with the x axis being
the "occu_before". Let's look at occu_before=1, then I
want to draw the bar which counts how many people have
the before-occupation of 1, plus, this bar is stacked
by 9 small bars each of which, say, the ith, denotes
how many people from the before-occupation 1 have the
after-occupation i, so on and so forth.
I don't know whether I've stated my question clearly
enough, but thanks for any help in advance.


Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
*   For searches and help try:

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