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

st: A tricky graph to make


From   "David Epstein" <[email protected]>
To   <[email protected]>
Subject   st: A tricky graph to make
Date   Tue, 14 Oct 2003 15:40:38 -0400

Hi All,

I have data I'd like to make into a graph, but I don't know if it's
possible. The data have democracy scores between -10 and 10 for
countries when they enter and leave the data set. For instance:

Country    Year     Score
=======    ====     =====
AFG        1955       -10
AFG        2000        -7
ANG        1976        -7
ANG        2000        -3
ARG        1955        -1
ARG        2000         8
...

meaning that Afghanistan entered in 1955 with a score of -10 and left in
2000 at -7, Angola entered in 1976 at -7 and left in 2000 at -3, etc.

I'd like to make a graph with year on the x-axis, democracy score on the
y-axis, plot two points for each country denoting the democracy levels
they had when they entered and left the data set, and have these two
points connected by a line. (Without the last requirement, it would just
be a scatter plot, of course). 

Is there a way to do this in Stata? I've been looking at the Graphics
book, but can't figure it out.

Any help is appreciated.


Best,

David Epstein


*
*   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