Hi,

I have a database on Panel data containing 143 countries and 22 years. Indeed, I would like to represent a graph between two variables X and Z for each country. I would like to have 143 graphics. I think that I can combine
Code:
 separate
and
Code:
twoway
command :

Step1: create the variables by country.

Code:
separate X, gen(country_name)

separate Z, gen(country_name)
step2: write for example this program for the first country:

Code:
sort year
twoway  line X1 Y1
Please, how to repeat this operation for the 143 countries and have on each graph the name of the country concerned?

Many thanks,