Dear all,
I have a dataset that contains the following string variables: "country" and "countrydestination". The first variable includes all African countries as individual country observations in the year 2000. Each country then has many - kind of - results with "countrydestination" (the country where African refugees emigrate to --> there are many listed for each country of origin).
I would like to create a graph (preferably a pie chart or a bar graph) that shows which countries Africans are fleeing to the most.
My thought (before starting with the graph) is: I would like to summarize all the African countries so that it is only "Africa" --> not individual countries, but only the entire continent. And then I would like to have the top 5 or top 10 countries that are destinations.
Unfortunately, I don't have a solution for any of these three problems (A: Summarize countries to Africa, B: Show only the top 10 destinations and C: create the graph).
Every help is very much appreciated!
Thank you to everyone in advance!
Kind regards,
Marah
Related Posts with Create graphs
Group conditioningHi there! Pardon me for a stupid thread title. I didn't know what to call it. I have the household…
Help on renaming and sorting my categorical variables on stataHi Everyone, I am presently working on a household survey data which has information about wages an…
correlationhae guys is there a code for finding correlation between a categorical nominal variable and dummy va…
Match rows within panel base on a variableHi, everybody I have the following code. I want to match the number of row base on prc_max. For ins…
Matching with CEMDear Statalisters, I am stuck at a seemingly easy code. I am using matching algorithm, cem (coarsen…
Subscribe to:
Post Comments (Atom)
0 Response to Create graphs
Post a Comment