--- David Epstein <[email protected]> wrote:
> 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
David,
Here is one way to do it.
. twoway (connect score year if country=="AFG") (connect score year
if country=="ANG") (connect score year if country=="ARG")
Friedrich Huebler
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
*
*   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/