├── README.md ├── data └── unhcr-time-series-residing-zaf-csv-1.csv ├── final_race_plot2.gif ├── ioslides_deck.Rmd ├── ioslides_deck.html ├── ioslides_deck_dc.Rmd └── ioslides_deck_dc.html /README.md: -------------------------------------------------------------------------------- 1 | # Animating Data Visualizations 2 | 3 | Hello! This is the complement to my tutorial about generating animated visualizations in R using ggplot2 and gganimate. If you have questions, you can ask me on Twitter- `@data_stephanie`. 4 | 5 | * To view the presentation, visit https://skirmer.github.io/animation_prez.html and click through. 6 | * To see the short version that I'm using at DC R Conference 2019, visit https://skirmer.github.io/animation_prez_dc.html 7 | * To see the underlying code and follow along, use the [ioslides_deck.Rmd](https://github.com/skirmer/animating_dataviz/blob/master/ioslides_deck.Rmd) file in this repo. 8 | 9 | ### Other Examples Using gganimate 10 | 11 | * Multiple animation - Mikey Harper: https://mikeyharper.uk/animated-plots-with-r/ 12 | 13 | * GIS - Daniela Vasquez: https://d4tagirl.com/2017/05/how-to-plot-animated-maps-with-gganimate 14 | 15 | * Forecasting 16 | - Hao Ye: https://haoye.us/post/2018-09-03-gganimate/ 17 | - Troy @ Peak Maximum [https://peakmaximum.com/](https://peakmaximum.com/2018/12/22/visualizing-prophet-with-gganimate/) 18 | 19 | 20 | * Shadowing - Len Kiefer: https://twitter.com/lenkiefer/status/1102274364995719169 21 | 22 | * Model Performance - Dariya Sydykova: [https://github.com/dariyasydykova](https://github.com/dariyasydykova/open_projects/tree/master/ROC_animation) 23 | 24 | * Groups Over Time with Reveal - Jovan Lekovic: [https://constantlyplotting.com/](https://constantlyplotting.com/snapshots-young-people-arent-watching-much-tv/) 25 | 26 | 27 | ### References and Thanks 28 | 29 | * Data Source: UNHCR via data.world: [UNHCR's populations of concern residing in South Africa](https://data.world/unhcr/244d728f-06e6-4c25-8eed-69e8fe3bffe0) 30 | 31 | * https://gganimate.com/ 32 | * https://ggplot2.tidyverse.org/ 33 | * https://ggforce.data-imaginist.com/ 34 | * https://stackoverflow.com/questions/53162821/animated-sorted-bar-chart-with-bars-overtaking-each-other/53163549 (Hat tip to Jon Spring for this awesome starting point for this kind of thing!) 35 | 36 | -------------------------------------------------------------------------------- /data/unhcr-time-series-residing-zaf-csv-1.csv: -------------------------------------------------------------------------------- 1 | Year,Country / territory of asylum/residence,Origin,Population type,Value 2 | #date+year,#country+residence,#country+origin,#population+type,#affected 3 | 1993,South Africa,Mozambique,Refugees (incl. refugee-like situations),250000 4 | 1994,South Africa,Angola,Refugees (incl. refugee-like situations),581 5 | 1994,South Africa,Dem. Rep. of the Congo,Refugees (incl. refugee-like situations),808 6 | 1994,South Africa,Ethiopia,Refugees (incl. refugee-like situations),66 7 | 1994,South Africa,Liberia,Refugees (incl. refugee-like situations),50 8 | 1994,South Africa,Mozambique,Refugees (incl. refugee-like situations),90000 9 | 1994,South Africa,Mozambique,Returned refugees,21000 10 | 1994,South Africa,Niger,Returned refugees,1 11 | 1994,South Africa,Rwanda,Refugees (incl. refugee-like situations),79 12 | 1994,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Refugees (incl. refugee-like situations),32 13 | 1994,South Africa,Somalia,Refugees (incl. refugee-like situations),96 14 | 1994,South Africa,Various/Unknown,Refugees (incl. refugee-like situations),182 15 | 1995,South Africa,Angola,Refugees (incl. refugee-like situations),3049 16 | 1995,South Africa,Angola,Returned refugees,3 17 | 1995,South Africa,Bangladesh,Refugees (incl. refugee-like situations),100 18 | 1995,South Africa,China,Refugees (incl. refugee-like situations),53 19 | 1995,South Africa,Dem. Rep. of the Congo,Refugees (incl. refugee-like situations),2579 20 | 1995,South Africa,Ethiopia,Refugees (incl. refugee-like situations),128 21 | 1995,South Africa,Mozambique,Refugees (incl. refugee-like situations),89299 22 | 1995,South Africa,Mozambique,Returned refugees,20701 23 | 1995,South Africa,Nigeria,Refugees (incl. refugee-like situations),944 24 | 1995,South Africa,Pakistan,Refugees (incl. refugee-like situations),324 25 | 1995,South Africa,Rwanda,Refugees (incl. refugee-like situations),206 26 | 1995,South Africa,Rwanda,Returned refugees,15 27 | 1995,South Africa,Somalia,Refugees (incl. refugee-like situations),857 28 | 1995,South Africa,Various/Unknown,Refugees (incl. refugee-like situations),3869 29 | 1995,South Africa,Various/Unknown,Returned refugees,4 30 | 1996,South Africa,Angola,Refugees (incl. refugee-like situations),3876 31 | 1996,South Africa,Angola,Returned refugees,308 32 | 1996,South Africa,Bangladesh,Refugees (incl. refugee-like situations),452 33 | 1996,South Africa,China,Refugees (incl. refugee-like situations),469 34 | 1996,South Africa,China,Returned refugees,2 35 | 1996,South Africa,Dem. Rep. of the Congo,Refugees (incl. refugee-like situations),2505 36 | 1996,South Africa,Dem. Rep. of the Congo,Returned refugees,310 37 | 1996,South Africa,Ethiopia,Refugees (incl. refugee-like situations),778 38 | 1996,South Africa,Ethiopia,Returned refugees,13 39 | 1996,South Africa,Nigeria,Refugees (incl. refugee-like situations),2584 40 | 1996,South Africa,Nigeria,Returned refugees,55 41 | 1996,South Africa,Pakistan,Refugees (incl. refugee-like situations),1904 42 | 1996,South Africa,Pakistan,Returned refugees,16 43 | 1996,South Africa,Rwanda,Refugees (incl. refugee-like situations),492 44 | 1996,South Africa,Rwanda,Returned refugees,96 45 | 1996,South Africa,Somalia,Refugees (incl. refugee-like situations),2371 46 | 1996,South Africa,Somalia,Returned refugees,52 47 | 1996,South Africa,Various/Unknown,Refugees (incl. refugee-like situations),7214 48 | 1996,South Africa,Various/Unknown,Returned refugees,145 49 | 1997,South Africa,Angola,Refugees (incl. refugee-like situations),2304 50 | 1997,South Africa,Angola,Returned refugees,2 51 | 1997,South Africa,Burundi,Refugees (incl. refugee-like situations),389 52 | 1997,South Africa,Dem. Rep. of the Congo,Refugees (incl. refugee-like situations),100 53 | 1997,South Africa,Ethiopia,Refugees (incl. refugee-like situations),2 54 | 1997,South Africa,Nigeria,Refugees (incl. refugee-like situations),1 55 | 1997,South Africa,Rwanda,Refugees (incl. refugee-like situations),356 56 | 1997,South Africa,Somalia,Refugees (incl. refugee-like situations),3595 57 | 1997,South Africa,Various/Unknown,Refugees (incl. refugee-like situations),72 58 | 1998,South Africa,Angola,Refugees (incl. refugee-like situations),2502 59 | 1998,South Africa,Burundi,Refugees (incl. refugee-like situations),601 60 | 1998,South Africa,Burundi,Returned refugees,1 61 | 1998,South Africa,Congo,Refugees (incl. refugee-like situations),531 62 | 1998,South Africa,Dem. Rep. of the Congo,Refugees (incl. refugee-like situations),95 63 | 1998,South Africa,Dem. Rep. of the Congo,Returned refugees,6 64 | 1998,South Africa,Ethiopia,Refugees (incl. refugee-like situations),2 65 | 1998,South Africa,Ethiopia,Returned refugees,1 66 | 1998,South Africa,Nigeria,Refugees (incl. refugee-like situations),4 67 | 1998,South Africa,Pakistan,Refugees (incl. refugee-like situations),5 68 | 1998,South Africa,Rwanda,Refugees (incl. refugee-like situations),455 69 | 1998,South Africa,Somalia,Refugees (incl. refugee-like situations),3910 70 | 1998,South Africa,Somalia,Returned refugees,39 71 | 1998,South Africa,Various/Unknown,Refugees (incl. refugee-like situations),283 72 | 1999,South Africa,Angola,Refugees (incl. refugee-like situations),3816 73 | 1999,South Africa,Burundi,Refugees (incl. refugee-like situations),604 74 | 1999,South Africa,Burundi,Returned refugees,2 75 | 1999,South Africa,Congo,Refugees (incl. refugee-like situations),530 76 | 1999,South Africa,Dem. Rep. of the Congo,Refugees (incl. refugee-like situations),4097 77 | 1999,South Africa,Dem. Rep. of the Congo,Returned refugees,2 78 | 1999,South Africa,Ethiopia,Refugees (incl. refugee-like situations),4 79 | 1999,South Africa,Ethiopia,Returned refugees,8 80 | 1999,South Africa,Ghana,Refugees (incl. refugee-like situations),1 81 | 1999,South Africa,Nigeria,Refugees (incl. refugee-like situations),4 82 | 1999,South Africa,Pakistan,Refugees (incl. refugee-like situations),6 83 | 1999,South Africa,Rwanda,Refugees (incl. refugee-like situations),446 84 | 1999,South Africa,Rwanda,Returned refugees,4 85 | 1999,South Africa,Somalia,Refugees (incl. refugee-like situations),4704 86 | 1999,South Africa,Somalia,Returned refugees,27 87 | 1999,South Africa,Various/Unknown,Refugees (incl. refugee-like situations),326 88 | 1999,South Africa,Various/Unknown,Returned refugees,2 89 | 2000,South Africa,Afghanistan,Refugees (incl. refugee-like situations),5 90 | 2000,South Africa,Afghanistan,Asylum-seekers,8 91 | 2000,South Africa,Algeria,Asylum-seekers,108 92 | 2000,South Africa,Angola,Refugees (incl. refugee-like situations),3897 93 | 2000,South Africa,Angola,Asylum-seekers,371 94 | 2000,South Africa,Bangladesh,Asylum-seekers,418 95 | 2000,South Africa,Benin,Asylum-seekers,82 96 | 2000,South Africa,Bosnia and Herzegovina,Refugees (incl. refugee-like situations),16 97 | 2000,South Africa,Bosnia and Herzegovina,Asylum-seekers,8 98 | 2000,South Africa,Bulgaria,Asylum-seekers,221 99 | 2000,South Africa,Burundi,Refugees (incl. refugee-like situations),632 100 | 2000,South Africa,Burundi,Asylum-seekers,1165 101 | 2000,South Africa,Cameroon,Asylum-seekers,284 102 | 2000,South Africa,China,Asylum-seekers,392 103 | 2000,South Africa,Comoros,Asylum-seekers,76 104 | 2000,South Africa,Congo,Refugees (incl. refugee-like situations),592 105 | 2000,South Africa,Congo,Asylum-seekers,658 106 | 2000,South Africa,Cote d'Ivoire,Asylum-seekers,250 107 | 2000,South Africa,Croatia,Refugees (incl. refugee-like situations),7 108 | 2000,South Africa,Croatia,Asylum-seekers,3 109 | 2000,South Africa,Cuba,Refugees (incl. refugee-like situations),1 110 | 2000,South Africa,Cuba,Asylum-seekers,1 111 | 2000,South Africa,Dem. Rep. of the Congo,Refugees (incl. refugee-like situations),4454 112 | 2000,South Africa,Dem. Rep. of the Congo,Asylum-seekers,759 113 | 2000,South Africa,Dem. Rep. of the Congo,Returned refugees,15 114 | 2000,South Africa,Egypt,Refugees (incl. refugee-like situations),1 115 | 2000,South Africa,Egypt,Asylum-seekers,66 116 | 2000,South Africa,Eritrea,Asylum-seekers,239 117 | 2000,South Africa,Ethiopia,Refugees (incl. refugee-like situations),4 118 | 2000,South Africa,Ethiopia,Asylum-seekers,1355 119 | 2000,South Africa,Ghana,Refugees (incl. refugee-like situations),2 120 | 2000,South Africa,Ghana,Asylum-seekers,346 121 | 2000,South Africa,India,Asylum-seekers,1450 122 | 2000,South Africa,Iran (Islamic Rep. of),Refugees (incl. refugee-like situations),2 123 | 2000,South Africa,Iraq,Refugees (incl. refugee-like situations),7 124 | 2000,South Africa,Iraq,Asylum-seekers,22 125 | 2000,South Africa,Kenya,Refugees (incl. refugee-like situations),1 126 | 2000,South Africa,Kenya,Asylum-seekers,304 127 | 2000,South Africa,Liberia,Refugees (incl. refugee-like situations),120 128 | 2000,South Africa,Liberia,Asylum-seekers,122 129 | 2000,South Africa,Mali,Asylum-seekers,39 130 | 2000,South Africa,Nigeria,Refugees (incl. refugee-like situations),3 131 | 2000,South Africa,Nigeria,Asylum-seekers,1036 132 | 2000,South Africa,Nigeria,Returned refugees,1 133 | 2000,South Africa,Pakistan,Refugees (incl. refugee-like situations),3 134 | 2000,South Africa,Pakistan,Asylum-seekers,1389 135 | 2000,South Africa,Rwanda,Refugees (incl. refugee-like situations),402 136 | 2000,South Africa,Rwanda,Asylum-seekers,432 137 | 2000,South Africa,Senegal,Asylum-seekers,655 138 | 2000,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Refugees (incl. refugee-like situations),25 139 | 2000,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Asylum-seekers,48 140 | 2000,South Africa,Sierra Leone,Refugees (incl. refugee-like situations),1 141 | 2000,South Africa,Sierra Leone,Asylum-seekers,202 142 | 2000,South Africa,Somalia,Refugees (incl. refugee-like situations),4810 143 | 2000,South Africa,Somalia,Asylum-seekers,626 144 | 2000,South Africa,Somalia,Returned refugees,3 145 | 2000,South Africa,Sri Lanka,Asylum-seekers,9 146 | 2000,South Africa,Sudan,Refugees (incl. refugee-like situations),76 147 | 2000,South Africa,Sudan,Asylum-seekers,129 148 | 2000,South Africa,Sudan,Returned refugees,1 149 | 2000,South Africa,Uganda,Asylum-seekers,471 150 | 2000,South Africa,United Rep. of Tanzania,Asylum-seekers,550 151 | 2000,South Africa,Various/Unknown,Asylum-seekers,748 152 | 2000,South Africa,Zambia,Refugees (incl. refugee-like situations),2 153 | 2000,South Africa,Zambia,Asylum-seekers,96 154 | 2001,South Africa,Afghanistan,Refugees (incl. refugee-like situations),10 155 | 2001,South Africa,Afghanistan,Asylum-seekers,5 156 | 2001,South Africa,Albania,Asylum-seekers,2 157 | 2001,South Africa,Algeria,Refugees (incl. refugee-like situations),1 158 | 2001,South Africa,Algeria,Asylum-seekers,37 159 | 2001,South Africa,Angola,Refugees (incl. refugee-like situations),4752 160 | 2001,South Africa,Angola,Asylum-seekers,442 161 | 2001,South Africa,Angola,Returned refugees,3 162 | 2001,South Africa,Bangladesh,Asylum-seekers,423 163 | 2001,South Africa,Benin,Asylum-seekers,13 164 | 2001,South Africa,Bosnia and Herzegovina,Refugees (incl. refugee-like situations),24 165 | 2001,South Africa,Bosnia and Herzegovina,Asylum-seekers,6 166 | 2001,South Africa,Bulgaria,Asylum-seekers,238 167 | 2001,South Africa,Burkina Faso,Asylum-seekers,17 168 | 2001,South Africa,Burundi,Refugees (incl. refugee-like situations),1439 169 | 2001,South Africa,Burundi,Asylum-seekers,335 170 | 2001,South Africa,Cameroon,Asylum-seekers,280 171 | 2001,South Africa,China,Asylum-seekers,318 172 | 2001,South Africa,"China, Macao SAR",Refugees (incl. refugee-like situations),1 173 | 2001,South Africa,Comoros,Asylum-seekers,62 174 | 2001,South Africa,Congo,Refugees (incl. refugee-like situations),811 175 | 2001,South Africa,Congo,Asylum-seekers,275 176 | 2001,South Africa,Congo,Returned refugees,2 177 | 2001,South Africa,Cote d'Ivoire,Refugees (incl. refugee-like situations),1 178 | 2001,South Africa,Cote d'Ivoire,Asylum-seekers,235 179 | 2001,South Africa,Croatia,Refugees (incl. refugee-like situations),8 180 | 2001,South Africa,Croatia,Asylum-seekers,1 181 | 2001,South Africa,Cuba,Refugees (incl. refugee-like situations),1 182 | 2001,South Africa,Dem. Rep. of the Congo,Refugees (incl. refugee-like situations),4993 183 | 2001,South Africa,Dem. Rep. of the Congo,Asylum-seekers,471 184 | 2001,South Africa,Dem. Rep. of the Congo,Returned refugees,2 185 | 2001,South Africa,Egypt,Refugees (incl. refugee-like situations),1 186 | 2001,South Africa,Egypt,Asylum-seekers,27 187 | 2001,South Africa,Eritrea,Asylum-seekers,58 188 | 2001,South Africa,Ethiopia,Refugees (incl. refugee-like situations),6 189 | 2001,South Africa,Ethiopia,Asylum-seekers,851 190 | 2001,South Africa,Gabon,Asylum-seekers,6 191 | 2001,South Africa,Gambia,Asylum-seekers,3 192 | 2001,South Africa,Georgia,Asylum-seekers,1 193 | 2001,South Africa,Ghana,Refugees (incl. refugee-like situations),5 194 | 2001,South Africa,Ghana,Asylum-seekers,355 195 | 2001,South Africa,Hungary,Asylum-seekers,1 196 | 2001,South Africa,India,Refugees (incl. refugee-like situations),1 197 | 2001,South Africa,India,Asylum-seekers,734 198 | 2001,South Africa,Iran (Islamic Rep. of),Refugees (incl. refugee-like situations),4 199 | 2001,South Africa,Iran (Islamic Rep. of),Asylum-seekers,12 200 | 2001,South Africa,Iraq,Refugees (incl. refugee-like situations),7 201 | 2001,South Africa,Iraq,Asylum-seekers,13 202 | 2001,South Africa,Kenya,Refugees (incl. refugee-like situations),1 203 | 2001,South Africa,Kenya,Asylum-seekers,181 204 | 2001,South Africa,Liberia,Refugees (incl. refugee-like situations),165 205 | 2001,South Africa,Liberia,Asylum-seekers,49 206 | 2001,South Africa,Mali,Refugees (incl. refugee-like situations),1 207 | 2001,South Africa,Mali,Asylum-seekers,116 208 | 2001,South Africa,Morocco,Asylum-seekers,12 209 | 2001,South Africa,Mozambique,Refugees (incl. refugee-like situations),1 210 | 2001,South Africa,Mozambique,Asylum-seekers,12 211 | 2001,South Africa,Nigeria,Refugees (incl. refugee-like situations),9 212 | 2001,South Africa,Nigeria,Asylum-seekers,715 213 | 2001,South Africa,Pakistan,Refugees (incl. refugee-like situations),10 214 | 2001,South Africa,Pakistan,Asylum-seekers,1111 215 | 2001,South Africa,Rwanda,Refugees (incl. refugee-like situations),820 216 | 2001,South Africa,Rwanda,Asylum-seekers,203 217 | 2001,South Africa,Rwanda,Returned refugees,1 218 | 2001,South Africa,Senegal,Refugees (incl. refugee-like situations),1 219 | 2001,South Africa,Senegal,Asylum-seekers,952 220 | 2001,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Refugees (incl. refugee-like situations),27 221 | 2001,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Asylum-seekers,34 222 | 2001,South Africa,Sierra Leone,Refugees (incl. refugee-like situations),41 223 | 2001,South Africa,Sierra Leone,Asylum-seekers,28 224 | 2001,South Africa,Slovenia,Refugees (incl. refugee-like situations),1 225 | 2001,South Africa,Somalia,Refugees (incl. refugee-like situations),5336 226 | 2001,South Africa,Somalia,Asylum-seekers,357 227 | 2001,South Africa,Somalia,Returned refugees,3 228 | 2001,South Africa,Sri Lanka,Asylum-seekers,9 229 | 2001,South Africa,Sudan,Refugees (incl. refugee-like situations),120 230 | 2001,South Africa,Sudan,Asylum-seekers,39 231 | 2001,South Africa,Syrian Arab Rep.,Asylum-seekers,1 232 | 2001,South Africa,Uganda,Asylum-seekers,244 233 | 2001,South Africa,Ukraine,Asylum-seekers,2 234 | 2001,South Africa,United Rep. of Tanzania,Refugees (incl. refugee-like situations),1 235 | 2001,South Africa,United Rep. of Tanzania,Asylum-seekers,309 236 | 2001,South Africa,Various/Unknown,Asylum-seekers,1756 237 | 2001,South Africa,Zambia,Refugees (incl. refugee-like situations),6 238 | 2001,South Africa,Zambia,Asylum-seekers,59 239 | 2001,South Africa,Zimbabwe,Asylum-seekers,7 240 | 2002,South Africa,Afghanistan,Refugees (incl. refugee-like situations),15 241 | 2002,South Africa,Afghanistan,Asylum-seekers,7 242 | 2002,South Africa,Algeria,Refugees (incl. refugee-like situations),1 243 | 2002,South Africa,Algeria,Asylum-seekers,44 244 | 2002,South Africa,Angola,Refugees (incl. refugee-like situations),5291 245 | 2002,South Africa,Angola,Asylum-seekers,5548 246 | 2002,South Africa,Angola,Returned refugees,3 247 | 2002,South Africa,Bangladesh,Refugees (incl. refugee-like situations),1 248 | 2002,South Africa,Bangladesh,Asylum-seekers,1442 249 | 2002,South Africa,Benin,Asylum-seekers,44 250 | 2002,South Africa,Bosnia and Herzegovina,Refugees (incl. refugee-like situations),24 251 | 2002,South Africa,Bosnia and Herzegovina,Asylum-seekers,12 252 | 2002,South Africa,Bulgaria,Asylum-seekers,162 253 | 2002,South Africa,Burundi,Refugees (incl. refugee-like situations),1715 254 | 2002,South Africa,Burundi,Asylum-seekers,1445 255 | 2002,South Africa,Burundi,Returned refugees,15 256 | 2002,South Africa,Cameroon,Refugees (incl. refugee-like situations),27 257 | 2002,South Africa,Cameroon,Asylum-seekers,463 258 | 2002,South Africa,Chad,Refugees (incl. refugee-like situations),1 259 | 2002,South Africa,Chad,Asylum-seekers,4 260 | 2002,South Africa,China,Asylum-seekers,1264 261 | 2002,South Africa,"China, Macao SAR",Refugees (incl. refugee-like situations),1 262 | 2002,South Africa,"China, Macao SAR",Asylum-seekers,1 263 | 2002,South Africa,Comoros,Refugees (incl. refugee-like situations),1 264 | 2002,South Africa,Comoros,Asylum-seekers,26 265 | 2002,South Africa,Congo,Refugees (incl. refugee-like situations),927 266 | 2002,South Africa,Congo,Asylum-seekers,938 267 | 2002,South Africa,Cote d'Ivoire,Refugees (incl. refugee-like situations),4 268 | 2002,South Africa,Cote d'Ivoire,Asylum-seekers,110 269 | 2002,South Africa,Croatia,Refugees (incl. refugee-like situations),8 270 | 2002,South Africa,Croatia,Asylum-seekers,2 271 | 2002,South Africa,Cuba,Refugees (incl. refugee-like situations),1 272 | 2002,South Africa,Dem. Rep. of the Congo,Refugees (incl. refugee-like situations),7243 273 | 2002,South Africa,Dem. Rep. of the Congo,Asylum-seekers,9642 274 | 2002,South Africa,Dem. Rep. of the Congo,Returned refugees,10 275 | 2002,South Africa,Egypt,Refugees (incl. refugee-like situations),1 276 | 2002,South Africa,Egypt,Asylum-seekers,271 277 | 2002,South Africa,Eritrea,Asylum-seekers,158 278 | 2002,South Africa,Ethiopia,Refugees (incl. refugee-like situations),13 279 | 2002,South Africa,Ethiopia,Asylum-seekers,1374 280 | 2002,South Africa,Ghana,Refugees (incl. refugee-like situations),5 281 | 2002,South Africa,Ghana,Asylum-seekers,403 282 | 2002,South Africa,India,Refugees (incl. refugee-like situations),1 283 | 2002,South Africa,India,Asylum-seekers,2286 284 | 2002,South Africa,Iran (Islamic Rep. of),Refugees (incl. refugee-like situations),4 285 | 2002,South Africa,Iran (Islamic Rep. of),Asylum-seekers,15 286 | 2002,South Africa,Iraq,Refugees (incl. refugee-like situations),11 287 | 2002,South Africa,Iraq,Asylum-seekers,41 288 | 2002,South Africa,Italy,Refugees (incl. refugee-like situations),1 289 | 2002,South Africa,Kenya,Refugees (incl. refugee-like situations),11 290 | 2002,South Africa,Kenya,Asylum-seekers,9187 291 | 2002,South Africa,Kyrgyzstan,Refugees (incl. refugee-like situations),11 292 | 2002,South Africa,Kyrgyzstan,Asylum-seekers,2 293 | 2002,South Africa,Liberia,Refugees (incl. refugee-like situations),194 294 | 2002,South Africa,Liberia,Asylum-seekers,82 295 | 2002,South Africa,Malawi,Asylum-seekers,137 296 | 2002,South Africa,Mali,Refugees (incl. refugee-like situations),1 297 | 2002,South Africa,Mali,Asylum-seekers,17 298 | 2002,South Africa,Mozambique,Refugees (incl. refugee-like situations),1 299 | 2002,South Africa,Mozambique,Asylum-seekers,35 300 | 2002,South Africa,Nigeria,Refugees (incl. refugee-like situations),22 301 | 2002,South Africa,Nigeria,Asylum-seekers,3464 302 | 2002,South Africa,Pakistan,Refugees (incl. refugee-like situations),27 303 | 2002,South Africa,Pakistan,Asylum-seekers,3268 304 | 2002,South Africa,Rwanda,Refugees (incl. refugee-like situations),982 305 | 2002,South Africa,Rwanda,Asylum-seekers,457 306 | 2002,South Africa,Rwanda,Returned refugees,9 307 | 2002,South Africa,Senegal,Refugees (incl. refugee-like situations),4 308 | 2002,South Africa,Senegal,Asylum-seekers,429 309 | 2002,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Refugees (incl. refugee-like situations),29 310 | 2002,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Asylum-seekers,57 311 | 2002,South Africa,Sierra Leone,Refugees (incl. refugee-like situations),52 312 | 2002,South Africa,Sierra Leone,Asylum-seekers,65 313 | 2002,South Africa,Slovenia,Refugees (incl. refugee-like situations),1 314 | 2002,South Africa,Somalia,Refugees (incl. refugee-like situations),6515 315 | 2002,South Africa,Somalia,Asylum-seekers,3032 316 | 2002,South Africa,Somalia,Returned refugees,7 317 | 2002,South Africa,Sri Lanka,Refugees (incl. refugee-like situations),3 318 | 2002,South Africa,Sri Lanka,Asylum-seekers,12 319 | 2002,South Africa,Sudan,Refugees (incl. refugee-like situations),152 320 | 2002,South Africa,Sudan,Asylum-seekers,75 321 | 2002,South Africa,Uganda,Refugees (incl. refugee-like situations),26 322 | 2002,South Africa,Uganda,Asylum-seekers,841 323 | 2002,South Africa,United Rep. of Tanzania,Refugees (incl. refugee-like situations),4 324 | 2002,South Africa,United Rep. of Tanzania,Asylum-seekers,1969 325 | 2002,South Africa,Various/Unknown,Asylum-seekers,3405 326 | 2002,South Africa,Zambia,Refugees (incl. refugee-like situations),11 327 | 2002,South Africa,Zambia,Asylum-seekers,101 328 | 2002,South Africa,Zimbabwe,Refugees (incl. refugee-like situations),2 329 | 2002,South Africa,Zimbabwe,Asylum-seekers,114 330 | 2003,South Africa,Afghanistan,Refugees (incl. refugee-like situations),15 331 | 2003,South Africa,Afghanistan,Asylum-seekers,22 332 | 2003,South Africa,Algeria,Refugees (incl. refugee-like situations),1 333 | 2003,South Africa,Algeria,Asylum-seekers,81 334 | 2003,South Africa,Angola,Refugees (incl. refugee-like situations),5773 335 | 2003,South Africa,Angola,Asylum-seekers,5925 336 | 2003,South Africa,Angola,Returned refugees,9 337 | 2003,South Africa,Bangladesh,Asylum-seekers,3279 338 | 2003,South Africa,Benin,Asylum-seekers,67 339 | 2003,South Africa,Bosnia and Herzegovina,Refugees (incl. refugee-like situations),27 340 | 2003,South Africa,Bulgaria,Asylum-seekers,188 341 | 2003,South Africa,Burundi,Refugees (incl. refugee-like situations),1986 342 | 2003,South Africa,Burundi,Asylum-seekers,2034 343 | 2003,South Africa,Burundi,Returned refugees,13 344 | 2003,South Africa,Cameroon,Refugees (incl. refugee-like situations),34 345 | 2003,South Africa,Cameroon,Asylum-seekers,803 346 | 2003,South Africa,Chad,Asylum-seekers,7 347 | 2003,South Africa,China,Asylum-seekers,2142 348 | 2003,South Africa,"China, Macao SAR",Refugees (incl. refugee-like situations),1 349 | 2003,South Africa,Comoros,Asylum-seekers,35 350 | 2003,South Africa,Congo,Refugees (incl. refugee-like situations),1053 351 | 2003,South Africa,Congo,Asylum-seekers,1585 352 | 2003,South Africa,Cote d'Ivoire,Refugees (incl. refugee-like situations),5 353 | 2003,South Africa,Cote d'Ivoire,Asylum-seekers,175 354 | 2003,South Africa,Croatia,Asylum-seekers,1 355 | 2003,South Africa,Cuba,Refugees (incl. refugee-like situations),1 356 | 2003,South Africa,Dem. Rep. of the Congo,Refugees (incl. refugee-like situations),8890 357 | 2003,South Africa,Dem. Rep. of the Congo,Asylum-seekers,14073 358 | 2003,South Africa,Dem. Rep. of the Congo,Returned refugees,16 359 | 2003,South Africa,Egypt,Refugees (incl. refugee-like situations),1 360 | 2003,South Africa,Egypt,Asylum-seekers,461 361 | 2003,South Africa,Eritrea,Asylum-seekers,290 362 | 2003,South Africa,Ethiopia,Refugees (incl. refugee-like situations),21 363 | 2003,South Africa,Ethiopia,Asylum-seekers,2882 364 | 2003,South Africa,Ghana,Refugees (incl. refugee-like situations),5 365 | 2003,South Africa,Ghana,Asylum-seekers,876 366 | 2003,South Africa,India,Refugees (incl. refugee-like situations),2 367 | 2003,South Africa,India,Asylum-seekers,4345 368 | 2003,South Africa,Iran (Islamic Rep. of),Refugees (incl. refugee-like situations),4 369 | 2003,South Africa,Iran (Islamic Rep. of),Asylum-seekers,26 370 | 2003,South Africa,Iraq,Refugees (incl. refugee-like situations),11 371 | 2003,South Africa,Iraq,Asylum-seekers,42 372 | 2003,South Africa,Kenya,Refugees (incl. refugee-like situations),12 373 | 2003,South Africa,Kenya,Asylum-seekers,9623 374 | 2003,South Africa,Kyrgyzstan,Refugees (incl. refugee-like situations),18 375 | 2003,South Africa,Liberia,Refugees (incl. refugee-like situations),213 376 | 2003,South Africa,Liberia,Asylum-seekers,118 377 | 2003,South Africa,Malawi,Asylum-seekers,1407 378 | 2003,South Africa,Mali,Refugees (incl. refugee-like situations),1 379 | 2003,South Africa,Mali,Asylum-seekers,26 380 | 2003,South Africa,Mozambique,Refugees (incl. refugee-like situations),1 381 | 2003,South Africa,Mozambique,Asylum-seekers,153 382 | 2003,South Africa,Nigeria,Refugees (incl. refugee-like situations),22 383 | 2003,South Africa,Nigeria,Asylum-seekers,7982 384 | 2003,South Africa,Pakistan,Refugees (incl. refugee-like situations),28 385 | 2003,South Africa,Pakistan,Asylum-seekers,7906 386 | 2003,South Africa,Rwanda,Refugees (incl. refugee-like situations),1193 387 | 2003,South Africa,Rwanda,Asylum-seekers,502 388 | 2003,South Africa,Rwanda,Returned refugees,4 389 | 2003,South Africa,Senegal,Refugees (incl. refugee-like situations),4 390 | 2003,South Africa,Senegal,Asylum-seekers,476 391 | 2003,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Refugees (incl. refugee-like situations),34 392 | 2003,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Asylum-seekers,58 393 | 2003,South Africa,Sierra Leone,Refugees (incl. refugee-like situations),52 394 | 2003,South Africa,Sierra Leone,Asylum-seekers,101 395 | 2003,South Africa,Slovenia,Refugees (incl. refugee-like situations),2 396 | 2003,South Africa,Somalia,Refugees (incl. refugee-like situations),6890 397 | 2003,South Africa,Somalia,Asylum-seekers,4705 398 | 2003,South Africa,Somalia,Returned refugees,14 399 | 2003,South Africa,Sri Lanka,Refugees (incl. refugee-like situations),3 400 | 2003,South Africa,Sri Lanka,Asylum-seekers,22 401 | 2003,South Africa,Sudan,Refugees (incl. refugee-like situations),177 402 | 2003,South Africa,Sudan,Asylum-seekers,91 403 | 2003,South Africa,Uganda,Refugees (incl. refugee-like situations),30 404 | 2003,South Africa,Uganda,Asylum-seekers,1527 405 | 2003,South Africa,United Rep. of Tanzania,Refugees (incl. refugee-like situations),5 406 | 2003,South Africa,United Rep. of Tanzania,Asylum-seekers,3174 407 | 2003,South Africa,Various/Unknown,Refugees (incl. refugee-like situations),24 408 | 2003,South Africa,Various/Unknown,Asylum-seekers,4033 409 | 2003,South Africa,Zambia,Refugees (incl. refugee-like situations),8 410 | 2003,South Africa,Zambia,Asylum-seekers,170 411 | 2003,South Africa,Zambia,Returned refugees,5 412 | 2003,South Africa,Zimbabwe,Refugees (incl. refugee-like situations),11 413 | 2003,South Africa,Zimbabwe,Asylum-seekers,2677 414 | 2004,South Africa,Afghanistan,Refugees (incl. refugee-like situations),15 415 | 2004,South Africa,Afghanistan,Asylum-seekers,22 416 | 2004,South Africa,Algeria,Refugees (incl. refugee-like situations),1 417 | 2004,South Africa,Algeria,Asylum-seekers,81 418 | 2004,South Africa,Angola,Refugees (incl. refugee-like situations),5774 419 | 2004,South Africa,Angola,Asylum-seekers,6274 420 | 2004,South Africa,Angola,Returned refugees,33 421 | 2004,South Africa,Bangladesh,Refugees (incl. refugee-like situations),1 422 | 2004,South Africa,Bangladesh,Asylum-seekers,4697 423 | 2004,South Africa,Benin,Asylum-seekers,81 424 | 2004,South Africa,Bosnia and Herzegovina,Refugees (incl. refugee-like situations),27 425 | 2004,South Africa,Bulgaria,Asylum-seekers,188 426 | 2004,South Africa,Burundi,Refugees (incl. refugee-like situations),2075 427 | 2004,South Africa,Burundi,Asylum-seekers,2937 428 | 2004,South Africa,Burundi,Returned refugees,22 429 | 2004,South Africa,Cameroon,Refugees (incl. refugee-like situations),43 430 | 2004,South Africa,Cameroon,Asylum-seekers,1187 431 | 2004,South Africa,Chad,Asylum-seekers,9 432 | 2004,South Africa,China,Asylum-seekers,3791 433 | 2004,South Africa,"China, Macao SAR",Refugees (incl. refugee-like situations),1 434 | 2004,South Africa,Comoros,Asylum-seekers,512 435 | 2004,South Africa,Congo,Refugees (incl. refugee-like situations),1111 436 | 2004,South Africa,Congo,Asylum-seekers,2044 437 | 2004,South Africa,Congo,Returned refugees,1 438 | 2004,South Africa,Cote d'Ivoire,Refugees (incl. refugee-like situations),5 439 | 2004,South Africa,Cote d'Ivoire,Asylum-seekers,238 440 | 2004,South Africa,Cuba,Refugees (incl. refugee-like situations),1 441 | 2004,South Africa,Dem. Rep. of the Congo,Refugees (incl. refugee-like situations),9516 442 | 2004,South Africa,Dem. Rep. of the Congo,Asylum-seekers,17993 443 | 2004,South Africa,Dem. Rep. of the Congo,Returned refugees,9 444 | 2004,South Africa,Egypt,Refugees (incl. refugee-like situations),1 445 | 2004,South Africa,Egypt,Asylum-seekers,948 446 | 2004,South Africa,Eritrea,Refugees (incl. refugee-like situations),1 447 | 2004,South Africa,Eritrea,Asylum-seekers,569 448 | 2004,South Africa,Ethiopia,Refugees (incl. refugee-like situations),23 449 | 2004,South Africa,Ethiopia,Asylum-seekers,5675 450 | 2004,South Africa,Ghana,Refugees (incl. refugee-like situations),5 451 | 2004,South Africa,Ghana,Asylum-seekers,1180 452 | 2004,South Africa,India,Refugees (incl. refugee-like situations),2 453 | 2004,South Africa,India,Asylum-seekers,5925 454 | 2004,South Africa,Iran (Islamic Rep. of),Refugees (incl. refugee-like situations),4 455 | 2004,South Africa,Iran (Islamic Rep. of),Asylum-seekers,33 456 | 2004,South Africa,Iraq,Refugees (incl. refugee-like situations),11 457 | 2004,South Africa,Iraq,Asylum-seekers,45 458 | 2004,South Africa,Kenya,Refugees (incl. refugee-like situations),12 459 | 2004,South Africa,Kenya,Asylum-seekers,10057 460 | 2004,South Africa,Kyrgyzstan,Refugees (incl. refugee-like situations),18 461 | 2004,South Africa,Liberia,Refugees (incl. refugee-like situations),214 462 | 2004,South Africa,Liberia,Asylum-seekers,214 463 | 2004,South Africa,Malawi,Asylum-seekers,2917 464 | 2004,South Africa,Mali,Refugees (incl. refugee-like situations),1 465 | 2004,South Africa,Mali,Asylum-seekers,31 466 | 2004,South Africa,Mozambique,Refugees (incl. refugee-like situations),1 467 | 2004,South Africa,Mozambique,Asylum-seekers,300 468 | 2004,South Africa,Nigeria,Refugees (incl. refugee-like situations),23 469 | 2004,South Africa,Nigeria,Asylum-seekers,8988 470 | 2004,South Africa,Pakistan,Refugees (incl. refugee-like situations),28 471 | 2004,South Africa,Pakistan,Asylum-seekers,9080 472 | 2004,South Africa,Rwanda,Refugees (incl. refugee-like situations),1266 473 | 2004,South Africa,Rwanda,Asylum-seekers,614 474 | 2004,South Africa,Rwanda,Returned refugees,4 475 | 2004,South Africa,Senegal,Refugees (incl. refugee-like situations),4 476 | 2004,South Africa,Senegal,Asylum-seekers,626 477 | 2004,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Refugees (incl. refugee-like situations),34 478 | 2004,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Asylum-seekers,64 479 | 2004,South Africa,Sierra Leone,Refugees (incl. refugee-like situations),53 480 | 2004,South Africa,Sierra Leone,Asylum-seekers,117 481 | 2004,South Africa,Slovenia,Refugees (incl. refugee-like situations),2 482 | 2004,South Africa,Somalia,Refugees (incl. refugee-like situations),7118 483 | 2004,South Africa,Somalia,Asylum-seekers,8360 484 | 2004,South Africa,Somalia,Returned refugees,8 485 | 2004,South Africa,Sri Lanka,Refugees (incl. refugee-like situations),3 486 | 2004,South Africa,Sri Lanka,Asylum-seekers,22 487 | 2004,South Africa,Sudan,Refugees (incl. refugee-like situations),175 488 | 2004,South Africa,Sudan,Asylum-seekers,113 489 | 2004,South Africa,Uganda,Refugees (incl. refugee-like situations),36 490 | 2004,South Africa,Uganda,Asylum-seekers,2136 491 | 2004,South Africa,United Rep. of Tanzania,Refugees (incl. refugee-like situations),8 492 | 2004,South Africa,United Rep. of Tanzania,Asylum-seekers,4082 493 | 2004,South Africa,Various/Unknown,Refugees (incl. refugee-like situations),30 494 | 2004,South Africa,Various/Unknown,Asylum-seekers,4327 495 | 2004,South Africa,Zambia,Refugees (incl. refugee-like situations),8 496 | 2004,South Africa,Zambia,Asylum-seekers,281 497 | 2004,South Africa,Zimbabwe,Refugees (incl. refugee-like situations),32 498 | 2004,South Africa,Zimbabwe,Asylum-seekers,8466 499 | 2005,South Africa,Afghanistan,Refugees (incl. refugee-like situations),18 500 | 2005,South Africa,Afghanistan,Asylum-seekers,19 501 | 2005,South Africa,Algeria,Asylum-seekers,80 502 | 2005,South Africa,Angola,Refugees (incl. refugee-like situations),5764 503 | 2005,South Africa,Angola,Asylum-seekers,6315 504 | 2005,South Africa,Angola,Returned refugees,24 505 | 2005,South Africa,Bangladesh,Asylum-seekers,6274 506 | 2005,South Africa,Benin,Asylum-seekers,93 507 | 2005,South Africa,Bosnia and Herzegovina,Refugees (incl. refugee-like situations),27 508 | 2005,South Africa,Bulgaria,Asylum-seekers,188 509 | 2005,South Africa,Burundi,Refugees (incl. refugee-like situations),2183 510 | 2005,South Africa,Burundi,Asylum-seekers,3754 511 | 2005,South Africa,Burundi,Returned refugees,58 512 | 2005,South Africa,Cameroon,Refugees (incl. refugee-like situations),54 513 | 2005,South Africa,Cameroon,Asylum-seekers,1394 514 | 2005,South Africa,Chad,Asylum-seekers,10 515 | 2005,South Africa,China,Asylum-seekers,3894 516 | 2005,South Africa,Comoros,Asylum-seekers,504 517 | 2005,South Africa,Congo,Refugees (incl. refugee-like situations),1160 518 | 2005,South Africa,Congo,Asylum-seekers,2865 519 | 2005,South Africa,Cote d'Ivoire,Refugees (incl. refugee-like situations),6 520 | 2005,South Africa,Cote d'Ivoire,Asylum-seekers,261 521 | 2005,South Africa,Dem. Rep. of the Congo,Refugees (incl. refugee-like situations),10609 522 | 2005,South Africa,Dem. Rep. of the Congo,Asylum-seekers,19098 523 | 2005,South Africa,Dem. Rep. of the Congo,Returned refugees,7 524 | 2005,South Africa,Egypt,Asylum-seekers,1027 525 | 2005,South Africa,Eritrea,Refugees (incl. refugee-like situations),19 526 | 2005,South Africa,Eritrea,Asylum-seekers,843 527 | 2005,South Africa,Ethiopia,Refugees (incl. refugee-like situations),78 528 | 2005,South Africa,Ethiopia,Asylum-seekers,8356 529 | 2005,South Africa,Ghana,Refugees (incl. refugee-like situations),8 530 | 2005,South Africa,Ghana,Asylum-seekers,1366 531 | 2005,South Africa,India,Asylum-seekers,6257 532 | 2005,South Africa,Iran (Islamic Rep. of),Refugees (incl. refugee-like situations),4 533 | 2005,South Africa,Iran (Islamic Rep. of),Asylum-seekers,32 534 | 2005,South Africa,Iraq,Refugees (incl. refugee-like situations),11 535 | 2005,South Africa,Iraq,Asylum-seekers,47 536 | 2005,South Africa,Kenya,Refugees (incl. refugee-like situations),14 537 | 2005,South Africa,Kenya,Asylum-seekers,10357 538 | 2005,South Africa,Kyrgyzstan,Refugees (incl. refugee-like situations),18 539 | 2005,South Africa,Liberia,Refugees (incl. refugee-like situations),216 540 | 2005,South Africa,Liberia,Asylum-seekers,291 541 | 2005,South Africa,Malawi,Refugees (incl. refugee-like situations),7 542 | 2005,South Africa,Malawi,Asylum-seekers,3833 543 | 2005,South Africa,Mali,Asylum-seekers,32 544 | 2005,South Africa,Mozambique,Asylum-seekers,355 545 | 2005,South Africa,Nigeria,Refugees (incl. refugee-like situations),27 546 | 2005,South Africa,Nigeria,Asylum-seekers,9712 547 | 2005,South Africa,Pakistan,Refugees (incl. refugee-like situations),29 548 | 2005,South Africa,Pakistan,Asylum-seekers,9876 549 | 2005,South Africa,Rwanda,Refugees (incl. refugee-like situations),1276 550 | 2005,South Africa,Rwanda,Asylum-seekers,725 551 | 2005,South Africa,Rwanda,Returned refugees,5 552 | 2005,South Africa,Senegal,Refugees (incl. refugee-like situations),4 553 | 2005,South Africa,Senegal,Asylum-seekers,876 554 | 2005,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Refugees (incl. refugee-like situations),34 555 | 2005,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Asylum-seekers,64 556 | 2005,South Africa,Sierra Leone,Refugees (incl. refugee-like situations),52 557 | 2005,South Africa,Sierra Leone,Asylum-seekers,127 558 | 2005,South Africa,Sierra Leone,Returned refugees,1 559 | 2005,South Africa,Somalia,Refugees (incl. refugee-like situations),7548 560 | 2005,South Africa,Somalia,Asylum-seekers,11548 561 | 2005,South Africa,Somalia,Returned refugees,1 562 | 2005,South Africa,Sri Lanka,Asylum-seekers,29 563 | 2005,South Africa,Sudan,Refugees (incl. refugee-like situations),173 564 | 2005,South Africa,Sudan,Asylum-seekers,121 565 | 2005,South Africa,Uganda,Refugees (incl. refugee-like situations),55 566 | 2005,South Africa,Uganda,Asylum-seekers,3106 567 | 2005,South Africa,Uganda,Returned refugees,4 568 | 2005,South Africa,United Rep. of Tanzania,Refugees (incl. refugee-like situations),135 569 | 2005,South Africa,United Rep. of Tanzania,Asylum-seekers,4981 570 | 2005,South Africa,Various/Unknown,Refugees (incl. refugee-like situations),61 571 | 2005,South Africa,Various/Unknown,Asylum-seekers,5019 572 | 2005,South Africa,Zambia,Refugees (incl. refugee-like situations),10 573 | 2005,South Africa,Zambia,Asylum-seekers,388 574 | 2005,South Africa,Zimbabwe,Refugees (incl. refugee-like situations),114 575 | 2005,South Africa,Zimbabwe,Asylum-seekers,15978 576 | 2006,South Africa,Afghanistan,Refugees (incl. refugee-like situations),18 577 | 2006,South Africa,Angola,Refugees (incl. refugee-like situations),5759 578 | 2006,South Africa,Angola,Returned refugees,17 579 | 2006,South Africa,Bosnia and Herzegovina,Refugees (incl. refugee-like situations),27 580 | 2006,South Africa,Burundi,Refugees (incl. refugee-like situations),2196 581 | 2006,South Africa,Burundi,Returned refugees,25 582 | 2006,South Africa,Cameroon,Refugees (incl. refugee-like situations),81 583 | 2006,South Africa,Congo,Refugees (incl. refugee-like situations),1204 584 | 2006,South Africa,Cote d'Ivoire,Refugees (incl. refugee-like situations),7 585 | 2006,South Africa,Dem. Rep. of the Congo,Refugees (incl. refugee-like situations),10772 586 | 2006,South Africa,Dem. Rep. of the Congo,Returned refugees,36 587 | 2006,South Africa,Eritrea,Refugees (incl. refugee-like situations),24 588 | 2006,South Africa,Ethiopia,Refugees (incl. refugee-like situations),125 589 | 2006,South Africa,Ghana,Refugees (incl. refugee-like situations),8 590 | 2006,South Africa,Kenya,Refugees (incl. refugee-like situations),22 591 | 2006,South Africa,Kyrgyzstan,Refugees (incl. refugee-like situations),18 592 | 2006,South Africa,Liberia,Refugees (incl. refugee-like situations),217 593 | 2006,South Africa,Malawi,Refugees (incl. refugee-like situations),7 594 | 2006,South Africa,Nigeria,Refugees (incl. refugee-like situations),27 595 | 2006,South Africa,Pakistan,Refugees (incl. refugee-like situations),29 596 | 2006,South Africa,Rwanda,Refugees (incl. refugee-like situations),1278 597 | 2006,South Africa,Rwanda,Returned refugees,1 598 | 2006,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Refugees (incl. refugee-like situations),34 599 | 2006,South Africa,Sierra Leone,Refugees (incl. refugee-like situations),52 600 | 2006,South Africa,Somalia,Refugees (incl. refugee-like situations),7818 601 | 2006,South Africa,Sudan,Refugees (incl. refugee-like situations),172 602 | 2006,South Africa,Uganda,Refugees (incl. refugee-like situations),70 603 | 2006,South Africa,United Rep. of Tanzania,Refugees (incl. refugee-like situations),136 604 | 2006,South Africa,Various/Unknown,Refugees (incl. refugee-like situations),4764 605 | 2006,South Africa,Various/Unknown,Asylum-seekers,131107 606 | 2006,South Africa,Zambia,Refugees (incl. refugee-like situations),10 607 | 2006,South Africa,Zimbabwe,Refugees (incl. refugee-like situations),211 608 | 2007,South Africa,Afghanistan,Refugees (incl. refugee-like situations),18 609 | 2007,South Africa,Algeria,Asylum-seekers,168 610 | 2007,South Africa,Angola,Refugees (incl. refugee-like situations),5752 611 | 2007,South Africa,Angola,Asylum-seekers,65 612 | 2007,South Africa,Angola,Returned refugees,10 613 | 2007,South Africa,Bangladesh,Refugees (incl. refugee-like situations),7 614 | 2007,South Africa,Bangladesh,Asylum-seekers,4818 615 | 2007,South Africa,Benin,Asylum-seekers,35 616 | 2007,South Africa,Bosnia and Herzegovina,Refugees (incl. refugee-like situations),27 617 | 2007,South Africa,Bulgaria,Asylum-seekers,2 618 | 2007,South Africa,Burkina Faso,Asylum-seekers,11 619 | 2007,South Africa,Burundi,Refugees (incl. refugee-like situations),2217 620 | 2007,South Africa,Burundi,Asylum-seekers,1719 621 | 2007,South Africa,Burundi,Returned refugees,29 622 | 2007,South Africa,Cameroon,Refugees (incl. refugee-like situations),103 623 | 2007,South Africa,Cameroon,Asylum-seekers,439 624 | 2007,South Africa,Chad,Asylum-seekers,14 625 | 2007,South Africa,China,Asylum-seekers,1139 626 | 2007,South Africa,Comoros,Asylum-seekers,31 627 | 2007,South Africa,Congo,Refugees (incl. refugee-like situations),1297 628 | 2007,South Africa,Congo,Asylum-seekers,1791 629 | 2007,South Africa,Cote d'Ivoire,Refugees (incl. refugee-like situations),7 630 | 2007,South Africa,Cote d'Ivoire,Asylum-seekers,192 631 | 2007,South Africa,Dem. Rep. of the Congo,Refugees (incl. refugee-like situations),11127 632 | 2007,South Africa,Dem. Rep. of the Congo,Asylum-seekers,11123 633 | 2007,South Africa,Dem. Rep. of the Congo,Returned refugees,14 634 | 2007,South Africa,Egypt,Refugees (incl. refugee-like situations),1 635 | 2007,South Africa,Egypt,Asylum-seekers,206 636 | 2007,South Africa,Eritrea,Refugees (incl. refugee-like situations),45 637 | 2007,South Africa,Eritrea,Asylum-seekers,714 638 | 2007,South Africa,Ethiopia,Refugees (incl. refugee-like situations),216 639 | 2007,South Africa,Ethiopia,Asylum-seekers,7050 640 | 2007,South Africa,Ethiopia,Returned refugees,1 641 | 2007,South Africa,Gambia,Asylum-seekers,14 642 | 2007,South Africa,Ghana,Refugees (incl. refugee-like situations),8 643 | 2007,South Africa,Ghana,Asylum-seekers,444 644 | 2007,South Africa,Guinea,Asylum-seekers,32 645 | 2007,South Africa,Haiti,Asylum-seekers,9 646 | 2007,South Africa,India,Asylum-seekers,1749 647 | 2007,South Africa,Iran (Islamic Rep. of),Asylum-seekers,1 648 | 2007,South Africa,Iraq,Refugees (incl. refugee-like situations),1 649 | 2007,South Africa,Iraq,Asylum-seekers,4 650 | 2007,South Africa,Kenya,Refugees (incl. refugee-like situations),32 651 | 2007,South Africa,Kenya,Asylum-seekers,792 652 | 2007,South Africa,Kyrgyzstan,Refugees (incl. refugee-like situations),18 653 | 2007,South Africa,Lesotho,Asylum-seekers,12 654 | 2007,South Africa,Liberia,Refugees (incl. refugee-like situations),217 655 | 2007,South Africa,Liberia,Asylum-seekers,103 656 | 2007,South Africa,Malawi,Refugees (incl. refugee-like situations),11 657 | 2007,South Africa,Malawi,Asylum-seekers,8171 658 | 2007,South Africa,Mali,Asylum-seekers,109 659 | 2007,South Africa,Mozambique,Asylum-seekers,673 660 | 2007,South Africa,Myanmar,Refugees (incl. refugee-like situations),1 661 | 2007,South Africa,Myanmar,Asylum-seekers,16 662 | 2007,South Africa,Niger,Asylum-seekers,22 663 | 2007,South Africa,Nigeria,Refugees (incl. refugee-like situations),33 664 | 2007,South Africa,Nigeria,Asylum-seekers,1410 665 | 2007,South Africa,Pakistan,Refugees (incl. refugee-like situations),29 666 | 2007,South Africa,Pakistan,Asylum-seekers,2047 667 | 2007,South Africa,Palestinian,Asylum-seekers,12 668 | 2007,South Africa,Poland,Refugees (incl. refugee-like situations),5 669 | 2007,South Africa,Russian Federation,Asylum-seekers,1 670 | 2007,South Africa,Rwanda,Refugees (incl. refugee-like situations),1282 671 | 2007,South Africa,Rwanda,Asylum-seekers,571 672 | 2007,South Africa,Rwanda,Returned refugees,4 673 | 2007,South Africa,Senegal,Refugees (incl. refugee-like situations),1 674 | 2007,South Africa,Senegal,Asylum-seekers,233 675 | 2007,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Refugees (incl. refugee-like situations),34 676 | 2007,South Africa,Sierra Leone,Refugees (incl. refugee-like situations),52 677 | 2007,South Africa,Sierra Leone,Asylum-seekers,51 678 | 2007,South Africa,Somalia,Refugees (incl. refugee-like situations),8554 679 | 2007,South Africa,Somalia,Asylum-seekers,4011 680 | 2007,South Africa,Somalia,Returned refugees,10 681 | 2007,South Africa,Sri Lanka,Asylum-seekers,33 682 | 2007,South Africa,Sudan,Refugees (incl. refugee-like situations),172 683 | 2007,South Africa,Sudan,Asylum-seekers,44 684 | 2007,South Africa,Sudan,Returned refugees,1 685 | 2007,South Africa,Swaziland,Asylum-seekers,58 686 | 2007,South Africa,Thailand,Asylum-seekers,17 687 | 2007,South Africa,Togo,Asylum-seekers,34 688 | 2007,South Africa,Tunisia,Asylum-seekers,3 689 | 2007,South Africa,Uganda,Refugees (incl. refugee-like situations),81 690 | 2007,South Africa,Uganda,Asylum-seekers,2239 691 | 2007,South Africa,United Rep. of Tanzania,Refugees (incl. refugee-like situations),136 692 | 2007,South Africa,United Rep. of Tanzania,Asylum-seekers,2725 693 | 2007,South Africa,Various/Unknown,Refugees (incl. refugee-like situations),4764 694 | 2007,South Africa,Various/Unknown,Asylum-seekers,81911 695 | 2007,South Africa,Zambia,Refugees (incl. refugee-like situations),11 696 | 2007,South Africa,Zambia,Asylum-seekers,446 697 | 2007,South Africa,Zimbabwe,Refugees (incl. refugee-like situations),477 698 | 2007,South Africa,Zimbabwe,Asylum-seekers,33351 699 | 2008,South Africa,Afghanistan,Refugees (incl. refugee-like situations),18 700 | 2008,South Africa,Algeria,Asylum-seekers,168 701 | 2008,South Africa,Angola,Refugees (incl. refugee-like situations),5751 702 | 2008,South Africa,Angola,Asylum-seekers,65 703 | 2008,South Africa,Angola,Returned refugees,1 704 | 2008,South Africa,Bangladesh,Refugees (incl. refugee-like situations),7 705 | 2008,South Africa,Bangladesh,Asylum-seekers,4818 706 | 2008,South Africa,Benin,Asylum-seekers,35 707 | 2008,South Africa,Bosnia and Herzegovina,Refugees (incl. refugee-like situations),27 708 | 2008,South Africa,Bulgaria,Asylum-seekers,2 709 | 2008,South Africa,Burkina Faso,Asylum-seekers,11 710 | 2008,South Africa,Burundi,Refugees (incl. refugee-like situations),2155 711 | 2008,South Africa,Burundi,Asylum-seekers,1719 712 | 2008,South Africa,Burundi,Returned refugees,101 713 | 2008,South Africa,Cameroon,Refugees (incl. refugee-like situations),103 714 | 2008,South Africa,Cameroon,Asylum-seekers,439 715 | 2008,South Africa,Chad,Asylum-seekers,14 716 | 2008,South Africa,China,Asylum-seekers,1139 717 | 2008,South Africa,Comoros,Asylum-seekers,31 718 | 2008,South Africa,Congo,Refugees (incl. refugee-like situations),1297 719 | 2008,South Africa,Congo,Asylum-seekers,1791 720 | 2008,South Africa,Cote d'Ivoire,Refugees (incl. refugee-like situations),7 721 | 2008,South Africa,Cote d'Ivoire,Asylum-seekers,192 722 | 2008,South Africa,Dem. Rep. of the Congo,Refugees (incl. refugee-like situations),10999 723 | 2008,South Africa,Dem. Rep. of the Congo,Asylum-seekers,11123 724 | 2008,South Africa,Dem. Rep. of the Congo,Returned refugees,159 725 | 2008,South Africa,Egypt,Refugees (incl. refugee-like situations),1 726 | 2008,South Africa,Egypt,Asylum-seekers,206 727 | 2008,South Africa,Eritrea,Refugees (incl. refugee-like situations),44 728 | 2008,South Africa,Eritrea,Asylum-seekers,714 729 | 2008,South Africa,Ethiopia,Refugees (incl. refugee-like situations),210 730 | 2008,South Africa,Ethiopia,Asylum-seekers,7050 731 | 2008,South Africa,Ethiopia,Returned refugees,2 732 | 2008,South Africa,Gambia,Asylum-seekers,14 733 | 2008,South Africa,Ghana,Refugees (incl. refugee-like situations),8 734 | 2008,South Africa,Ghana,Asylum-seekers,444 735 | 2008,South Africa,Guinea,Asylum-seekers,32 736 | 2008,South Africa,Haiti,Asylum-seekers,9 737 | 2008,South Africa,India,Asylum-seekers,1749 738 | 2008,South Africa,Iran (Islamic Rep. of),Asylum-seekers,1 739 | 2008,South Africa,Iraq,Refugees (incl. refugee-like situations),1 740 | 2008,South Africa,Iraq,Asylum-seekers,4 741 | 2008,South Africa,Kenya,Refugees (incl. refugee-like situations),32 742 | 2008,South Africa,Kenya,Asylum-seekers,792 743 | 2008,South Africa,Kyrgyzstan,Refugees (incl. refugee-like situations),18 744 | 2008,South Africa,Lesotho,Asylum-seekers,12 745 | 2008,South Africa,Liberia,Refugees (incl. refugee-like situations),213 746 | 2008,South Africa,Liberia,Asylum-seekers,103 747 | 2008,South Africa,Liberia,Returned refugees,4 748 | 2008,South Africa,Malawi,Refugees (incl. refugee-like situations),11 749 | 2008,South Africa,Malawi,Asylum-seekers,8171 750 | 2008,South Africa,Mali,Asylum-seekers,109 751 | 2008,South Africa,Mozambique,Asylum-seekers,673 752 | 2008,South Africa,Myanmar,Refugees (incl. refugee-like situations),1 753 | 2008,South Africa,Myanmar,Asylum-seekers,16 754 | 2008,South Africa,Niger,Asylum-seekers,22 755 | 2008,South Africa,Nigeria,Refugees (incl. refugee-like situations),33 756 | 2008,South Africa,Nigeria,Asylum-seekers,1410 757 | 2008,South Africa,Pakistan,Refugees (incl. refugee-like situations),29 758 | 2008,South Africa,Pakistan,Asylum-seekers,2047 759 | 2008,South Africa,Palestinian,Asylum-seekers,12 760 | 2008,South Africa,Poland,Refugees (incl. refugee-like situations),5 761 | 2008,South Africa,Russian Federation,Asylum-seekers,1 762 | 2008,South Africa,Rwanda,Refugees (incl. refugee-like situations),1266 763 | 2008,South Africa,Rwanda,Asylum-seekers,571 764 | 2008,South Africa,Rwanda,Returned refugees,11 765 | 2008,South Africa,Senegal,Refugees (incl. refugee-like situations),1 766 | 2008,South Africa,Senegal,Asylum-seekers,233 767 | 2008,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Refugees (incl. refugee-like situations),34 768 | 2008,South Africa,Sierra Leone,Refugees (incl. refugee-like situations),52 769 | 2008,South Africa,Sierra Leone,Asylum-seekers,51 770 | 2008,South Africa,Somalia,Refugees (incl. refugee-like situations),8543 771 | 2008,South Africa,Somalia,Asylum-seekers,4011 772 | 2008,South Africa,Somalia,Returned refugees,3 773 | 2008,South Africa,Sri Lanka,Asylum-seekers,33 774 | 2008,South Africa,Sudan,Refugees (incl. refugee-like situations),168 775 | 2008,South Africa,Sudan,Asylum-seekers,44 776 | 2008,South Africa,Sudan,Returned refugees,4 777 | 2008,South Africa,Swaziland,Asylum-seekers,58 778 | 2008,South Africa,Thailand,Asylum-seekers,17 779 | 2008,South Africa,Togo,Asylum-seekers,34 780 | 2008,South Africa,Tunisia,Asylum-seekers,3 781 | 2008,South Africa,Uganda,Refugees (incl. refugee-like situations),79 782 | 2008,South Africa,Uganda,Asylum-seekers,2239 783 | 2008,South Africa,Uganda,Returned refugees,2 784 | 2008,South Africa,United Rep. of Tanzania,Refugees (incl. refugee-like situations),136 785 | 2008,South Africa,United Rep. of Tanzania,Asylum-seekers,2725 786 | 2008,South Africa,Various/Unknown,Refugees (incl. refugee-like situations),11813 787 | 2008,South Africa,Various/Unknown,Asylum-seekers,138171 788 | 2008,South Africa,Zambia,Refugees (incl. refugee-like situations),11 789 | 2008,South Africa,Zambia,Asylum-seekers,446 790 | 2008,South Africa,Zimbabwe,Refugees (incl. refugee-like situations),473 791 | 2008,South Africa,Zimbabwe,Asylum-seekers,33351 792 | 2009,South Africa,Afghanistan,Refugees (incl. refugee-like situations),18 793 | 2009,South Africa,Angola,Refugees (incl. refugee-like situations),5758 794 | 2009,South Africa,Angola,Returned refugees,1 795 | 2009,South Africa,Bangladesh,Refugees (incl. refugee-like situations),38 796 | 2009,South Africa,Bosnia and Herzegovina,Refugees (incl. refugee-like situations),27 797 | 2009,South Africa,Burundi,Refugees (incl. refugee-like situations),2273 798 | 2009,South Africa,Burundi,Returned refugees,21 799 | 2009,South Africa,Cameroon,Refugees (incl. refugee-like situations),112 800 | 2009,South Africa,Congo,Refugees (incl. refugee-like situations),1906 801 | 2009,South Africa,Congo,Returned refugees,5 802 | 2009,South Africa,Cote d'Ivoire,Refugees (incl. refugee-like situations),7 803 | 2009,South Africa,Dem. Rep. of the Congo,Refugees (incl. refugee-like situations),11708 804 | 2009,South Africa,Dem. Rep. of the Congo,Returned refugees,14 805 | 2009,South Africa,Egypt,Returned refugees,1 806 | 2009,South Africa,Eritrea,Refugees (incl. refugee-like situations),246 807 | 2009,South Africa,Ethiopia,Refugees (incl. refugee-like situations),1509 808 | 2009,South Africa,Ghana,Refugees (incl. refugee-like situations),8 809 | 2009,South Africa,Iraq,Refugees (incl. refugee-like situations),5 810 | 2009,South Africa,Kenya,Refugees (incl. refugee-like situations),36 811 | 2009,South Africa,Kyrgyzstan,Refugees (incl. refugee-like situations),18 812 | 2009,South Africa,Liberia,Refugees (incl. refugee-like situations),214 813 | 2009,South Africa,Malawi,Refugees (incl. refugee-like situations),11 814 | 2009,South Africa,Myanmar,Refugees (incl. refugee-like situations),1 815 | 2009,South Africa,Nigeria,Refugees (incl. refugee-like situations),33 816 | 2009,South Africa,Pakistan,Refugees (incl. refugee-like situations),31 817 | 2009,South Africa,Poland,Refugees (incl. refugee-like situations),5 818 | 2009,South Africa,Rwanda,Refugees (incl. refugee-like situations),1282 819 | 2009,South Africa,Senegal,Refugees (incl. refugee-like situations),1 820 | 2009,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Refugees (incl. refugee-like situations),34 821 | 2009,South Africa,Sierra Leone,Refugees (incl. refugee-like situations),52 822 | 2009,South Africa,Somalia,Refugees (incl. refugee-like situations),9718 823 | 2009,South Africa,Sudan,Refugees (incl. refugee-like situations),174 824 | 2009,South Africa,Uganda,Refugees (incl. refugee-like situations),99 825 | 2009,South Africa,United Rep. of Tanzania,Refugees (incl. refugee-like situations),137 826 | 2009,South Africa,Various/Unknown,Refugees (incl. refugee-like situations),11826 827 | 2009,South Africa,Various/Unknown,Asylum-seekers,309794 828 | 2009,South Africa,Various/Unknown,Returned refugees,1 829 | 2009,South Africa,Zambia,Refugees (incl. refugee-like situations),14 830 | 2009,South Africa,Zimbabwe,Refugees (incl. refugee-like situations),673 831 | 2010,South Africa,Afghanistan,Refugees (incl. refugee-like situations),18 832 | 2010,South Africa,Angola,Refugees (incl. refugee-like situations),5808 833 | 2010,South Africa,Angola,Returned refugees,1 834 | 2010,South Africa,Bahamas,Refugees (incl. refugee-like situations),1 835 | 2010,South Africa,Bangladesh,Refugees (incl. refugee-like situations),82 836 | 2010,South Africa,Bosnia and Herzegovina,Refugees (incl. refugee-like situations),27 837 | 2010,South Africa,Burundi,Refugees (incl. refugee-like situations),2412 838 | 2010,South Africa,Burundi,Returned refugees,9 839 | 2010,South Africa,Cameroon,Refugees (incl. refugee-like situations),134 840 | 2010,South Africa,Congo,Refugees (incl. refugee-like situations),2172 841 | 2010,South Africa,Cote d'Ivoire,Refugees (incl. refugee-like situations),10 842 | 2010,South Africa,Dem. Rep. of the Congo,Refugees (incl. refugee-like situations),12973 843 | 2010,South Africa,Dem. Rep. of the Congo,Returned refugees,15 844 | 2010,South Africa,Eritrea,Refugees (incl. refugee-like situations),415 845 | 2010,South Africa,Ethiopia,Refugees (incl. refugee-like situations),3398 846 | 2010,South Africa,Ghana,Refugees (incl. refugee-like situations),9 847 | 2010,South Africa,India,Refugees (incl. refugee-like situations),3 848 | 2010,South Africa,Iraq,Refugees (incl. refugee-like situations),5 849 | 2010,South Africa,Kenya,Refugees (incl. refugee-like situations),52 850 | 2010,South Africa,Kyrgyzstan,Refugees (incl. refugee-like situations),18 851 | 2010,South Africa,Lesotho,Refugees (incl. refugee-like situations),2 852 | 2010,South Africa,Liberia,Refugees (incl. refugee-like situations),214 853 | 2010,South Africa,Malawi,Refugees (incl. refugee-like situations),11 854 | 2010,South Africa,Morocco,Refugees (incl. refugee-like situations),2 855 | 2010,South Africa,Myanmar,Refugees (incl. refugee-like situations),1 856 | 2010,South Africa,Nigeria,Refugees (incl. refugee-like situations),34 857 | 2010,South Africa,Pakistan,Refugees (incl. refugee-like situations),37 858 | 2010,South Africa,Palestinian,Refugees (incl. refugee-like situations),3 859 | 2010,South Africa,Poland,Refugees (incl. refugee-like situations),5 860 | 2010,South Africa,Rwanda,Refugees (incl. refugee-like situations),1374 861 | 2010,South Africa,Rwanda,Returned refugees,5 862 | 2010,South Africa,Senegal,Refugees (incl. refugee-like situations),1 863 | 2010,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Refugees (incl. refugee-like situations),34 864 | 2010,South Africa,Sierra Leone,Refugees (incl. refugee-like situations),53 865 | 2010,South Africa,Solomon Islands,Refugees (incl. refugee-like situations),4 866 | 2010,South Africa,Somalia,Refugees (incl. refugee-like situations),15186 867 | 2010,South Africa,Sudan,Refugees (incl. refugee-like situations),179 868 | 2010,South Africa,Sudan,Returned refugees,1 869 | 2010,South Africa,Uganda,Refugees (incl. refugee-like situations),134 870 | 2010,South Africa,United Rep. of Tanzania,Refugees (incl. refugee-like situations),139 871 | 2010,South Africa,Various/Unknown,Refugees (incl. refugee-like situations),11827 872 | 2010,South Africa,Various/Unknown,Asylum-seekers,171702 873 | 2010,South Africa,Yemen,Refugees (incl. refugee-like situations),3 874 | 2010,South Africa,Zambia,Refugees (incl. refugee-like situations),19 875 | 2010,South Africa,Zimbabwe,Refugees (incl. refugee-like situations),1100 876 | 2010,South Africa,Zimbabwe,Returned refugees,103 877 | 2011,South Africa,Afghanistan,Refugees (incl. refugee-like situations),18 878 | 2011,South Africa,Afghanistan,Asylum-seekers,2 879 | 2011,South Africa,Algeria,Asylum-seekers,16 880 | 2011,South Africa,Angola,Refugees (incl. refugee-like situations),5808 881 | 2011,South Africa,Angola,Asylum-seekers,6 882 | 2011,South Africa,Bahamas,Refugees (incl. refugee-like situations),1 883 | 2011,South Africa,Bangladesh,Refugees (incl. refugee-like situations),82 884 | 2011,South Africa,Bangladesh,Asylum-seekers,2699 885 | 2011,South Africa,Benin,Asylum-seekers,6 886 | 2011,South Africa,Bosnia and Herzegovina,Refugees (incl. refugee-like situations),27 887 | 2011,South Africa,Botswana,Asylum-seekers,2 888 | 2011,South Africa,Bulgaria,Asylum-seekers,3 889 | 2011,South Africa,Burkina Faso,Asylum-seekers,10 890 | 2011,South Africa,Burundi,Refugees (incl. refugee-like situations),2412 891 | 2011,South Africa,Burundi,Asylum-seekers,714 892 | 2011,South Africa,Burundi,Returned refugees,15 893 | 2011,South Africa,Cameroon,Refugees (incl. refugee-like situations),134 894 | 2011,South Africa,Cameroon,Asylum-seekers,321 895 | 2011,South Africa,Central African Rep.,Asylum-seekers,1 896 | 2011,South Africa,Chad,Asylum-seekers,1 897 | 2011,South Africa,China,Asylum-seekers,649 898 | 2011,South Africa,Comoros,Asylum-seekers,13 899 | 2011,South Africa,Congo,Refugees (incl. refugee-like situations),2172 900 | 2011,South Africa,Congo,Asylum-seekers,778 901 | 2011,South Africa,Congo,Returned refugees,5 902 | 2011,South Africa,Cote d'Ivoire,Refugees (incl. refugee-like situations),10 903 | 2011,South Africa,Cote d'Ivoire,Asylum-seekers,38 904 | 2011,South Africa,Dem. Rep. of the Congo,Refugees (incl. refugee-like situations),12973 905 | 2011,South Africa,Dem. Rep. of the Congo,Asylum-seekers,4467 906 | 2011,South Africa,Dem. Rep. of the Congo,Returned refugees,12 907 | 2011,South Africa,Egypt,Asylum-seekers,173 908 | 2011,South Africa,Eritrea,Refugees (incl. refugee-like situations),415 909 | 2011,South Africa,Eritrea,Asylum-seekers,35 910 | 2011,South Africa,Estonia,Asylum-seekers,2 911 | 2011,South Africa,Ethiopia,Refugees (incl. refugee-like situations),3398 912 | 2011,South Africa,Ethiopia,Asylum-seekers,3620 913 | 2011,South Africa,Gabon,Asylum-seekers,2 914 | 2011,South Africa,Ghana,Refugees (incl. refugee-like situations),9 915 | 2011,South Africa,Ghana,Asylum-seekers,667 916 | 2011,South Africa,Guinea,Asylum-seekers,7 917 | 2011,South Africa,Guinea-Bissau,Asylum-seekers,2 918 | 2011,South Africa,India,Refugees (incl. refugee-like situations),3 919 | 2011,South Africa,India,Asylum-seekers,515 920 | 2011,South Africa,Iraq,Refugees (incl. refugee-like situations),5 921 | 2011,South Africa,Ireland,Asylum-seekers,2 922 | 2011,South Africa,Jordan,Asylum-seekers,4 923 | 2011,South Africa,Kenya,Refugees (incl. refugee-like situations),52 924 | 2011,South Africa,Kenya,Asylum-seekers,123 925 | 2011,South Africa,Kyrgyzstan,Refugees (incl. refugee-like situations),18 926 | 2011,South Africa,Lebanon,Asylum-seekers,1 927 | 2011,South Africa,Lesotho,Refugees (incl. refugee-like situations),2 928 | 2011,South Africa,Lesotho,Asylum-seekers,158 929 | 2011,South Africa,Liberia,Refugees (incl. refugee-like situations),214 930 | 2011,South Africa,Liberia,Asylum-seekers,7 931 | 2011,South Africa,Malawi,Refugees (incl. refugee-like situations),11 932 | 2011,South Africa,Malawi,Asylum-seekers,2754 933 | 2011,South Africa,Mali,Asylum-seekers,13 934 | 2011,South Africa,Mauritania,Asylum-seekers,1 935 | 2011,South Africa,Morocco,Refugees (incl. refugee-like situations),2 936 | 2011,South Africa,Morocco,Asylum-seekers,7 937 | 2011,South Africa,Mozambique,Asylum-seekers,341 938 | 2011,South Africa,Myanmar,Refugees (incl. refugee-like situations),1 939 | 2011,South Africa,Namibia,Asylum-seekers,1 940 | 2011,South Africa,Nepal,Asylum-seekers,2 941 | 2011,South Africa,Niger,Asylum-seekers,15 942 | 2011,South Africa,Nigeria,Refugees (incl. refugee-like situations),34 943 | 2011,South Africa,Nigeria,Asylum-seekers,1199 944 | 2011,South Africa,Pakistan,Refugees (incl. refugee-like situations),37 945 | 2011,South Africa,Pakistan,Asylum-seekers,1348 946 | 2011,South Africa,Palestinian,Refugees (incl. refugee-like situations),3 947 | 2011,South Africa,Philippines,Asylum-seekers,1 948 | 2011,South Africa,Poland,Refugees (incl. refugee-like situations),5 949 | 2011,South Africa,Rwanda,Refugees (incl. refugee-like situations),1374 950 | 2011,South Africa,Rwanda,Asylum-seekers,142 951 | 2011,South Africa,Rwanda,Returned refugees,5 952 | 2011,South Africa,Senegal,Refugees (incl. refugee-like situations),1 953 | 2011,South Africa,Senegal,Asylum-seekers,164 954 | 2011,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Refugees (incl. refugee-like situations),34 955 | 2011,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Asylum-seekers,1 956 | 2011,South Africa,Sierra Leone,Refugees (incl. refugee-like situations),53 957 | 2011,South Africa,Sierra Leone,Asylum-seekers,2 958 | 2011,South Africa,Solomon Islands,Refugees (incl. refugee-like situations),4 959 | 2011,South Africa,Solomon Islands,Asylum-seekers,1 960 | 2011,South Africa,Somalia,Refugees (incl. refugee-like situations),15186 961 | 2011,South Africa,Somalia,Asylum-seekers,5678 962 | 2011,South Africa,Sri Lanka,Asylum-seekers,11 963 | 2011,South Africa,Sudan,Refugees (incl. refugee-like situations),179 964 | 2011,South Africa,Sudan,Asylum-seekers,22 965 | 2011,South Africa,Swaziland,Asylum-seekers,79 966 | 2011,South Africa,Thailand,Asylum-seekers,12 967 | 2011,South Africa,Togo,Asylum-seekers,16 968 | 2011,South Africa,Tunisia,Asylum-seekers,3 969 | 2011,South Africa,Turkey,Asylum-seekers,2 970 | 2011,South Africa,Uganda,Refugees (incl. refugee-like situations),134 971 | 2011,South Africa,Uganda,Asylum-seekers,674 972 | 2011,South Africa,Ukraine,Asylum-seekers,1 973 | 2011,South Africa,United Rep. of Tanzania,Refugees (incl. refugee-like situations),139 974 | 2011,South Africa,United Rep. of Tanzania,Asylum-seekers,311 975 | 2011,South Africa,Uzbekistan,Asylum-seekers,1 976 | 2011,South Africa,Various/Unknown,Refugees (incl. refugee-like situations),11827 977 | 2011,South Africa,Various/Unknown,Asylum-seekers,156342 978 | 2011,South Africa,Viet Nam,Asylum-seekers,2 979 | 2011,South Africa,Yemen,Refugees (incl. refugee-like situations),3 980 | 2011,South Africa,Yemen,Asylum-seekers,2 981 | 2011,South Africa,Zambia,Refugees (incl. refugee-like situations),19 982 | 2011,South Africa,Zambia,Asylum-seekers,132 983 | 2011,South Africa,Zimbabwe,Refugees (incl. refugee-like situations),1100 984 | 2011,South Africa,Zimbabwe,Asylum-seekers,35044 985 | 2012,South Africa,Afghanistan,Refugees (incl. refugee-like situations),20 986 | 2012,South Africa,Algeria,Asylum-seekers,73 987 | 2012,South Africa,Angola,Refugees (incl. refugee-like situations),5805 988 | 2012,South Africa,Angola,Asylum-seekers,31 989 | 2012,South Africa,Bahamas,Refugees (incl. refugee-like situations),1 990 | 2012,South Africa,Bahamas,Asylum-seekers,2 991 | 2012,South Africa,Bangladesh,Refugees (incl. refugee-like situations),146 992 | 2012,South Africa,Bangladesh,Asylum-seekers,4390 993 | 2012,South Africa,Benin,Asylum-seekers,24 994 | 2012,South Africa,Bosnia and Herzegovina,Refugees (incl. refugee-like situations),27 995 | 2012,South Africa,Botswana,Asylum-seekers,5 996 | 2012,South Africa,Bulgaria,Asylum-seekers,5 997 | 2012,South Africa,Burkina Faso,Asylum-seekers,16 998 | 2012,South Africa,Burundi,Refugees (incl. refugee-like situations),2359 999 | 2012,South Africa,Burundi,Asylum-seekers,1459 1000 | 2012,South Africa,Burundi,Returned refugees,13 1001 | 2012,South Africa,Cameroon,Refugees (incl. refugee-like situations),135 1002 | 2012,South Africa,Cameroon,Asylum-seekers,701 1003 | 2012,South Africa,Central African Rep.,Asylum-seekers,3 1004 | 2012,South Africa,Chad,Asylum-seekers,2 1005 | 2012,South Africa,China,Asylum-seekers,1371 1006 | 2012,South Africa,Colombia,Asylum-seekers,1 1007 | 2012,South Africa,Comoros,Asylum-seekers,24 1008 | 2012,South Africa,Congo,Refugees (incl. refugee-like situations),2336 1009 | 2012,South Africa,Congo,Asylum-seekers,1110 1010 | 2012,South Africa,Cote d'Ivoire,Refugees (incl. refugee-like situations),12 1011 | 2012,South Africa,Cote d'Ivoire,Asylum-seekers,76 1012 | 2012,South Africa,Cuba,Asylum-seekers,1 1013 | 2012,South Africa,Czech Rep.,Asylum-seekers,1 1014 | 2012,South Africa,Dem. Rep. of the Congo,Refugees (incl. refugee-like situations),13386 1015 | 2012,South Africa,Dem. Rep. of the Congo,Asylum-seekers,9788 1016 | 2012,South Africa,Dem. Rep. of the Congo,Returned refugees,8 1017 | 2012,South Africa,Egypt,Refugees (incl. refugee-like situations),1 1018 | 2012,South Africa,Egypt,Asylum-seekers,455 1019 | 2012,South Africa,Eritrea,Refugees (incl. refugee-like situations),660 1020 | 2012,South Africa,Eritrea,Asylum-seekers,33 1021 | 2012,South Africa,Estonia,Refugees (incl. refugee-like situations),2 1022 | 2012,South Africa,Estonia,Asylum-seekers,6 1023 | 2012,South Africa,Ethiopia,Refugees (incl. refugee-like situations),5538 1024 | 2012,South Africa,Ethiopia,Asylum-seekers,6219 1025 | 2012,South Africa,Gabon,Asylum-seekers,12 1026 | 2012,South Africa,Gambia,Asylum-seekers,5 1027 | 2012,South Africa,Germany,Asylum-seekers,1 1028 | 2012,South Africa,Ghana,Refugees (incl. refugee-like situations),10 1029 | 2012,South Africa,Ghana,Asylum-seekers,1427 1030 | 2012,South Africa,Guinea,Asylum-seekers,20 1031 | 2012,South Africa,Haiti,Asylum-seekers,1 1032 | 2012,South Africa,Iceland,Asylum-seekers,2 1033 | 2012,South Africa,India,Refugees (incl. refugee-like situations),3 1034 | 2012,South Africa,India,Asylum-seekers,1781 1035 | 2012,South Africa,Iran (Islamic Rep. of),Asylum-seekers,6 1036 | 2012,South Africa,Iraq,Refugees (incl. refugee-like situations),5 1037 | 2012,South Africa,Iraq,Asylum-seekers,5 1038 | 2012,South Africa,Ireland,Asylum-seekers,3 1039 | 2012,South Africa,Jordan,Asylum-seekers,10 1040 | 2012,South Africa,Kenya,Refugees (incl. refugee-like situations),53 1041 | 2012,South Africa,Kenya,Asylum-seekers,267 1042 | 2012,South Africa,Kuwait,Asylum-seekers,1 1043 | 2012,South Africa,Kyrgyzstan,Refugees (incl. refugee-like situations),18 1044 | 2012,South Africa,Lebanon,Asylum-seekers,2 1045 | 2012,South Africa,Lesotho,Refugees (incl. refugee-like situations),2 1046 | 2012,South Africa,Lesotho,Asylum-seekers,279 1047 | 2012,South Africa,Liberia,Refugees (incl. refugee-like situations),214 1048 | 2012,South Africa,Liberia,Asylum-seekers,30 1049 | 2012,South Africa,Libya,Asylum-seekers,7 1050 | 2012,South Africa,Madagascar,Asylum-seekers,2 1051 | 2012,South Africa,Malawi,Refugees (incl. refugee-like situations),11 1052 | 2012,South Africa,Malawi,Asylum-seekers,4343 1053 | 2012,South Africa,Mali,Asylum-seekers,32 1054 | 2012,South Africa,Mauritania,Asylum-seekers,1 1055 | 2012,South Africa,Morocco,Refugees (incl. refugee-like situations),2 1056 | 2012,South Africa,Morocco,Asylum-seekers,12 1057 | 2012,South Africa,Mozambique,Asylum-seekers,850 1058 | 2012,South Africa,Myanmar,Refugees (incl. refugee-like situations),1 1059 | 2012,South Africa,Myanmar,Asylum-seekers,1 1060 | 2012,South Africa,Namibia,Asylum-seekers,2 1061 | 2012,South Africa,Nepal,Asylum-seekers,58 1062 | 2012,South Africa,Niger,Asylum-seekers,8 1063 | 2012,South Africa,Nigeria,Refugees (incl. refugee-like situations),34 1064 | 2012,South Africa,Nigeria,Asylum-seekers,3456 1065 | 2012,South Africa,Pakistan,Refugees (incl. refugee-like situations),38 1066 | 2012,South Africa,Pakistan,Asylum-seekers,3087 1067 | 2012,South Africa,Palau,Asylum-seekers,1 1068 | 2012,South Africa,Palestinian,Refugees (incl. refugee-like situations),3 1069 | 2012,South Africa,Palestinian,Asylum-seekers,3 1070 | 2012,South Africa,Philippines,Asylum-seekers,3 1071 | 2012,South Africa,Poland,Refugees (incl. refugee-like situations),5 1072 | 2012,South Africa,Russian Federation,Asylum-seekers,1 1073 | 2012,South Africa,Rwanda,Refugees (incl. refugee-like situations),1364 1074 | 2012,South Africa,Rwanda,Asylum-seekers,311 1075 | 2012,South Africa,Rwanda,Returned refugees,1 1076 | 2012,South Africa,Saint Kitts and Nevis,Asylum-seekers,1 1077 | 2012,South Africa,Sao Tome and Principe,Asylum-seekers,1 1078 | 2012,South Africa,Senegal,Refugees (incl. refugee-like situations),1 1079 | 2012,South Africa,Senegal,Asylum-seekers,242 1080 | 2012,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Refugees (incl. refugee-like situations),34 1081 | 2012,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Asylum-seekers,5 1082 | 2012,South Africa,Sierra Leone,Refugees (incl. refugee-like situations),53 1083 | 2012,South Africa,Solomon Islands,Refugees (incl. refugee-like situations),5 1084 | 2012,South Africa,Solomon Islands,Asylum-seekers,4 1085 | 2012,South Africa,Somalia,Refugees (incl. refugee-like situations),17864 1086 | 2012,South Africa,Somalia,Asylum-seekers,5526 1087 | 2012,South Africa,Sri Lanka,Refugees (incl. refugee-like situations),1 1088 | 2012,South Africa,Sri Lanka,Asylum-seekers,19 1089 | 2012,South Africa,Sri Lanka,Returned refugees,1 1090 | 2012,South Africa,Sudan,Refugees (incl. refugee-like situations),182 1091 | 2012,South Africa,Sudan,Asylum-seekers,36 1092 | 2012,South Africa,Swaziland,Refugees (incl. refugee-like situations),1 1093 | 2012,South Africa,Swaziland,Asylum-seekers,90 1094 | 2012,South Africa,Syrian Arab Rep.,Refugees (incl. refugee-like situations),2 1095 | 2012,South Africa,Syrian Arab Rep.,Asylum-seekers,8 1096 | 2012,South Africa,Thailand,Asylum-seekers,12 1097 | 2012,South Africa,The former Yugoslav Republic of Macedonia,Asylum-seekers,1 1098 | 2012,South Africa,Togo,Asylum-seekers,22 1099 | 2012,South Africa,Tunisia,Asylum-seekers,3 1100 | 2012,South Africa,Turkey,Asylum-seekers,5 1101 | 2012,South Africa,Uganda,Refugees (incl. refugee-like situations),141 1102 | 2012,South Africa,Uganda,Asylum-seekers,1454 1103 | 2012,South Africa,Ukraine,Asylum-seekers,2 1104 | 2012,South Africa,United Rep. of Tanzania,Refugees (incl. refugee-like situations),140 1105 | 2012,South Africa,United Rep. of Tanzania,Asylum-seekers,574 1106 | 2012,South Africa,Uzbekistan,Asylum-seekers,1 1107 | 2012,South Africa,Various/Unknown,Refugees (incl. refugee-like situations),13503 1108 | 2012,South Africa,Various/Unknown,Asylum-seekers,140027 1109 | 2012,South Africa,Viet Nam,Asylum-seekers,2 1110 | 2012,South Africa,Yemen,Refugees (incl. refugee-like situations),3 1111 | 2012,South Africa,Yemen,Asylum-seekers,4 1112 | 2012,South Africa,Zambia,Refugees (incl. refugee-like situations),17 1113 | 2012,South Africa,Zambia,Asylum-seekers,202 1114 | 2012,South Africa,Zambia,Returned refugees,2 1115 | 2012,South Africa,Zimbabwe,Refugees (incl. refugee-like situations),1095 1116 | 2012,South Africa,Zimbabwe,Asylum-seekers,40375 1117 | 2013,South Africa,Afghanistan,Refugees (incl. refugee-like situations),20 1118 | 2013,South Africa,Afghanistan,Asylum-seekers,1 1119 | 2013,South Africa,Algeria,Asylum-seekers,112 1120 | 2013,South Africa,Angola,Asylum-seekers,44 1121 | 2013,South Africa,Angola,Returned refugees,35 1122 | 2013,South Africa,Bahamas,Refugees (incl. refugee-like situations),1 1123 | 2013,South Africa,Bahamas,Asylum-seekers,2 1124 | 2013,South Africa,Bangladesh,Refugees (incl. refugee-like situations),150 1125 | 2013,South Africa,Bangladesh,Asylum-seekers,5214 1126 | 2013,South Africa,Benin,Asylum-seekers,26 1127 | 2013,South Africa,Bosnia and Herzegovina,Refugees (incl. refugee-like situations),27 1128 | 2013,South Africa,Botswana,Asylum-seekers,6 1129 | 2013,South Africa,Bulgaria,Asylum-seekers,4 1130 | 2013,South Africa,Burkina Faso,Asylum-seekers,18 1131 | 2013,South Africa,Burundi,Refugees (incl. refugee-like situations),2330 1132 | 2013,South Africa,Burundi,Asylum-seekers,1539 1133 | 2013,South Africa,Burundi,Returned refugees,31 1134 | 2013,South Africa,Cameroon,Refugees (incl. refugee-like situations),138 1135 | 2013,South Africa,Cameroon,Asylum-seekers,679 1136 | 2013,South Africa,Central African Rep.,Refugees (incl. refugee-like situations),2 1137 | 2013,South Africa,Central African Rep.,Asylum-seekers,1 1138 | 2013,South Africa,Chad,Asylum-seekers,1 1139 | 2013,South Africa,China,Asylum-seekers,1556 1140 | 2013,South Africa,"China, Macao SAR",Asylum-seekers,1 1141 | 2013,South Africa,Colombia,Asylum-seekers,2 1142 | 2013,South Africa,Comoros,Asylum-seekers,23 1143 | 2013,South Africa,Congo,Refugees (incl. refugee-like situations),2646 1144 | 2013,South Africa,Congo,Asylum-seekers,914 1145 | 2013,South Africa,Congo,Returned refugees,7 1146 | 2013,South Africa,Cote d'Ivoire,Refugees (incl. refugee-like situations),2 1147 | 2013,South Africa,Cote d'Ivoire,Asylum-seekers,104 1148 | 2013,South Africa,Cote d'Ivoire,Returned refugees,1 1149 | 2013,South Africa,Cuba,Asylum-seekers,1 1150 | 2013,South Africa,Czech Rep.,Asylum-seekers,1 1151 | 2013,South Africa,Dem. Rep. of the Congo,Refugees (incl. refugee-like situations),14414 1152 | 2013,South Africa,Dem. Rep. of the Congo,Asylum-seekers,11514 1153 | 2013,South Africa,Dem. Rep. of the Congo,Returned refugees,12 1154 | 2013,South Africa,Egypt,Refugees (incl. refugee-like situations),1 1155 | 2013,South Africa,Egypt,Asylum-seekers,523 1156 | 2013,South Africa,El Salvador,Asylum-seekers,1 1157 | 2013,South Africa,Eritrea,Refugees (incl. refugee-like situations),822 1158 | 2013,South Africa,Eritrea,Asylum-seekers,87 1159 | 2013,South Africa,Estonia,Refugees (incl. refugee-like situations),2 1160 | 2013,South Africa,Estonia,Asylum-seekers,7 1161 | 2013,South Africa,Ethiopia,Refugees (incl. refugee-like situations),7582 1162 | 2013,South Africa,Ethiopia,Asylum-seekers,7663 1163 | 2013,South Africa,Gabon,Asylum-seekers,10 1164 | 2013,South Africa,Gambia,Asylum-seekers,5 1165 | 2013,South Africa,Germany,Asylum-seekers,1 1166 | 2013,South Africa,Ghana,Refugees (incl. refugee-like situations),10 1167 | 2013,South Africa,Ghana,Asylum-seekers,1618 1168 | 2013,South Africa,Guinea,Asylum-seekers,20 1169 | 2013,South Africa,Guinea-Bissau,Asylum-seekers,1 1170 | 2013,South Africa,Haiti,Asylum-seekers,1 1171 | 2013,South Africa,Iceland,Asylum-seekers,3 1172 | 2013,South Africa,India,Refugees (incl. refugee-like situations),3 1173 | 2013,South Africa,India,Asylum-seekers,2582 1174 | 2013,South Africa,Indonesia,Asylum-seekers,1 1175 | 2013,South Africa,Iran (Islamic Rep. of),Asylum-seekers,4 1176 | 2013,South Africa,Iraq,Refugees (incl. refugee-like situations),5 1177 | 2013,South Africa,Iraq,Asylum-seekers,11 1178 | 2013,South Africa,Ireland,Asylum-seekers,3 1179 | 2013,South Africa,Jordan,Asylum-seekers,9 1180 | 2013,South Africa,Kenya,Refugees (incl. refugee-like situations),53 1181 | 2013,South Africa,Kenya,Asylum-seekers,342 1182 | 2013,South Africa,Kuwait,Asylum-seekers,1 1183 | 2013,South Africa,Kyrgyzstan,Refugees (incl. refugee-like situations),18 1184 | 2013,South Africa,Lebanon,Asylum-seekers,2 1185 | 2013,South Africa,Lesotho,Refugees (incl. refugee-like situations),2 1186 | 2013,South Africa,Lesotho,Asylum-seekers,676 1187 | 2013,South Africa,Liberia,Refugees (incl. refugee-like situations),214 1188 | 2013,South Africa,Liberia,Asylum-seekers,40 1189 | 2013,South Africa,Libya,Asylum-seekers,9 1190 | 2013,South Africa,Madagascar,Asylum-seekers,2 1191 | 2013,South Africa,Malawi,Refugees (incl. refugee-like situations),12 1192 | 2013,South Africa,Malawi,Asylum-seekers,4017 1193 | 2013,South Africa,Mali,Refugees (incl. refugee-like situations),4 1194 | 2013,South Africa,Mali,Asylum-seekers,42 1195 | 2013,South Africa,Mauritania,Asylum-seekers,1 1196 | 2013,South Africa,Morocco,Refugees (incl. refugee-like situations),2 1197 | 2013,South Africa,Morocco,Asylum-seekers,12 1198 | 2013,South Africa,Mozambique,Asylum-seekers,1416 1199 | 2013,South Africa,Myanmar,Refugees (incl. refugee-like situations),1 1200 | 2013,South Africa,Myanmar,Asylum-seekers,1 1201 | 2013,South Africa,Namibia,Asylum-seekers,2 1202 | 2013,South Africa,Nepal,Asylum-seekers,78 1203 | 2013,South Africa,Niger,Asylum-seekers,10 1204 | 2013,South Africa,Nigeria,Refugees (incl. refugee-like situations),34 1205 | 2013,South Africa,Nigeria,Asylum-seekers,4542 1206 | 2013,South Africa,Pakistan,Refugees (incl. refugee-like situations),38 1207 | 2013,South Africa,Pakistan,Asylum-seekers,4515 1208 | 2013,South Africa,Palau,Asylum-seekers,1 1209 | 2013,South Africa,Palestinian,Refugees (incl. refugee-like situations),6 1210 | 2013,South Africa,Palestinian,Asylum-seekers,1 1211 | 2013,South Africa,Philippines,Asylum-seekers,6 1212 | 2013,South Africa,Poland,Refugees (incl. refugee-like situations),5 1213 | 2013,South Africa,Russian Federation,Asylum-seekers,1 1214 | 2013,South Africa,Rwanda,Refugees (incl. refugee-like situations),1366 1215 | 2013,South Africa,Rwanda,Asylum-seekers,294 1216 | 2013,South Africa,Rwanda,Returned refugees,1 1217 | 2013,South Africa,Saint Kitts and Nevis,Refugees (incl. refugee-like situations),1 1218 | 2013,South Africa,Samoa,Asylum-seekers,2 1219 | 2013,South Africa,Sao Tome and Principe,Asylum-seekers,1 1220 | 2013,South Africa,Senegal,Refugees (incl. refugee-like situations),1 1221 | 2013,South Africa,Senegal,Asylum-seekers,303 1222 | 2013,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Refugees (incl. refugee-like situations),34 1223 | 2013,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Asylum-seekers,6 1224 | 2013,South Africa,Sierra Leone,Refugees (incl. refugee-like situations),53 1225 | 2013,South Africa,Sierra Leone,Asylum-seekers,4 1226 | 2013,South Africa,Solomon Islands,Refugees (incl. refugee-like situations),6 1227 | 2013,South Africa,Solomon Islands,Asylum-seekers,3 1228 | 2013,South Africa,Somalia,Refugees (incl. refugee-like situations),20818 1229 | 2013,South Africa,Somalia,Asylum-seekers,3665 1230 | 2013,South Africa,Sri Lanka,Refugees (incl. refugee-like situations),4 1231 | 2013,South Africa,Sri Lanka,Asylum-seekers,18 1232 | 2013,South Africa,Sudan,Refugees (incl. refugee-like situations),181 1233 | 2013,South Africa,Sudan,Asylum-seekers,45 1234 | 2013,South Africa,Swaziland,Refugees (incl. refugee-like situations),2 1235 | 2013,South Africa,Swaziland,Asylum-seekers,99 1236 | 2013,South Africa,Syrian Arab Rep.,Refugees (incl. refugee-like situations),8 1237 | 2013,South Africa,Syrian Arab Rep.,Asylum-seekers,11 1238 | 2013,South Africa,Thailand,Asylum-seekers,13 1239 | 2013,South Africa,The former Yugoslav Republic of Macedonia,Asylum-seekers,1 1240 | 2013,South Africa,Togo,Asylum-seekers,28 1241 | 2013,South Africa,Tunisia,Asylum-seekers,3 1242 | 2013,South Africa,Turkey,Asylum-seekers,5 1243 | 2013,South Africa,Tuvalu,Asylum-seekers,1 1244 | 2013,South Africa,Uganda,Refugees (incl. refugee-like situations),146 1245 | 2013,South Africa,Uganda,Asylum-seekers,1641 1246 | 2013,South Africa,Ukraine,Asylum-seekers,3 1247 | 2013,South Africa,United Rep. of Tanzania,Refugees (incl. refugee-like situations),141 1248 | 2013,South Africa,United Rep. of Tanzania,Asylum-seekers,656 1249 | 2013,South Africa,Uzbekistan,Asylum-seekers,1 1250 | 2013,South Africa,Various/Unknown,Refugees (incl. refugee-like situations),13503 1251 | 2013,South Africa,Various/Unknown,Asylum-seekers,139687 1252 | 2013,South Africa,Viet Nam,Asylum-seekers,2 1253 | 2013,South Africa,Yemen,Refugees (incl. refugee-like situations),3 1254 | 2013,South Africa,Yemen,Asylum-seekers,3 1255 | 2013,South Africa,Zambia,Refugees (incl. refugee-like situations),18 1256 | 2013,South Africa,Zambia,Asylum-seekers,222 1257 | 2013,South Africa,Zimbabwe,Refugees (incl. refugee-like situations),1158 1258 | 2013,South Africa,Zimbabwe,Asylum-seekers,40523 1259 | 2014,South Africa,Afghanistan,Refugees (incl. refugee-like situations),10 1260 | 2014,South Africa,Afghanistan,Asylum-seekers,6 1261 | 2014,South Africa,Algeria,Refugees (incl. refugee-like situations),4 1262 | 2014,South Africa,Algeria,Asylum-seekers,153 1263 | 2014,South Africa,Andorra,Refugees (incl. refugee-like situations),2 1264 | 2014,South Africa,Angola,Asylum-seekers,45 1265 | 2014,South Africa,Anguilla,Refugees (incl. refugee-like situations),1 1266 | 2014,South Africa,Bahamas,Refugees (incl. refugee-like situations),3 1267 | 2014,South Africa,Bahamas,Asylum-seekers,2 1268 | 2014,South Africa,Bangladesh,Refugees (incl. refugee-like situations),849 1269 | 2014,South Africa,Bangladesh,Asylum-seekers,5051 1270 | 2014,South Africa,Benin,Refugees (incl. refugee-like situations),1 1271 | 2014,South Africa,Benin,Asylum-seekers,32 1272 | 2014,South Africa,Bosnia and Herzegovina,Refugees (incl. refugee-like situations),1 1273 | 2014,South Africa,Botswana,Asylum-seekers,17 1274 | 2014,South Africa,Brazil,Refugees (incl. refugee-like situations),1 1275 | 2014,South Africa,Bulgaria,Refugees (incl. refugee-like situations),5 1276 | 2014,South Africa,Bulgaria,Asylum-seekers,4 1277 | 2014,South Africa,Burkina Faso,Asylum-seekers,20 1278 | 2014,South Africa,Burundi,Refugees (incl. refugee-like situations),3653 1279 | 2014,South Africa,Burundi,Asylum-seekers,1358 1280 | 2014,South Africa,Burundi,Returned refugees,7 1281 | 2014,South Africa,Cambodia,Refugees (incl. refugee-like situations),1 1282 | 2014,South Africa,Cameroon,Refugees (incl. refugee-like situations),525 1283 | 2014,South Africa,Cameroon,Asylum-seekers,559 1284 | 2014,South Africa,Central African Rep.,Refugees (incl. refugee-like situations),8 1285 | 2014,South Africa,Central African Rep.,Asylum-seekers,7 1286 | 2014,South Africa,Chad,Refugees (incl. refugee-like situations),6 1287 | 2014,South Africa,China,Refugees (incl. refugee-like situations),7 1288 | 2014,South Africa,China,Asylum-seekers,1526 1289 | 2014,South Africa,"China, Macao SAR",Refugees (incl. refugee-like situations),4 1290 | 2014,South Africa,"China, Macao SAR",Asylum-seekers,1 1291 | 2014,South Africa,Colombia,Refugees (incl. refugee-like situations),1 1292 | 2014,South Africa,Colombia,Asylum-seekers,2 1293 | 2014,South Africa,Comoros,Refugees (incl. refugee-like situations),5 1294 | 2014,South Africa,Comoros,Asylum-seekers,19 1295 | 2014,South Africa,Congo,Refugees (incl. refugee-like situations),6035 1296 | 2014,South Africa,Congo,Asylum-seekers,807 1297 | 2014,South Africa,Congo,Returned refugees,5 1298 | 2014,South Africa,Cote d'Ivoire,Refugees (incl. refugee-like situations),48 1299 | 2014,South Africa,Cote d'Ivoire,Asylum-seekers,110 1300 | 2014,South Africa,Cuba,Asylum-seekers,1 1301 | 2014,South Africa,Czech Rep.,Asylum-seekers,3 1302 | 2014,South Africa,Dem. Rep. of the Congo,Refugees (incl. refugee-like situations),30125 1303 | 2014,South Africa,Dem. Rep. of the Congo,Asylum-seekers,12172 1304 | 2014,South Africa,Djibouti,Refugees (incl. refugee-like situations),1 1305 | 2014,South Africa,Egypt,Refugees (incl. refugee-like situations),4 1306 | 2014,South Africa,Egypt,Asylum-seekers,591 1307 | 2014,South Africa,El Salvador,Asylum-seekers,1 1308 | 2014,South Africa,Eritrea,Refugees (incl. refugee-like situations),2219 1309 | 2014,South Africa,Eritrea,Asylum-seekers,304 1310 | 2014,South Africa,Estonia,Refugees (incl. refugee-like situations),6 1311 | 2014,South Africa,Estonia,Asylum-seekers,7 1312 | 2014,South Africa,Ethiopia,Refugees (incl. refugee-like situations),18830 1313 | 2014,South Africa,Ethiopia,Asylum-seekers,13383 1314 | 2014,South Africa,France,Refugees (incl. refugee-like situations),2 1315 | 2014,South Africa,Gabon,Refugees (incl. refugee-like situations),2 1316 | 2014,South Africa,Gabon,Asylum-seekers,6 1317 | 2014,South Africa,Gambia,Asylum-seekers,9 1318 | 2014,South Africa,Germany,Asylum-seekers,1 1319 | 2014,South Africa,Ghana,Refugees (incl. refugee-like situations),16 1320 | 2014,South Africa,Ghana,Asylum-seekers,1650 1321 | 2014,South Africa,Guinea,Refugees (incl. refugee-like situations),1 1322 | 2014,South Africa,Guinea,Asylum-seekers,26 1323 | 2014,South Africa,Guinea-Bissau,Refugees (incl. refugee-like situations),1 1324 | 2014,South Africa,Guinea-Bissau,Asylum-seekers,1 1325 | 2014,South Africa,Haiti,Asylum-seekers,1 1326 | 2014,South Africa,Iceland,Asylum-seekers,3 1327 | 2014,South Africa,India,Refugees (incl. refugee-like situations),12 1328 | 2014,South Africa,India,Asylum-seekers,3343 1329 | 2014,South Africa,Indonesia,Asylum-seekers,1 1330 | 2014,South Africa,Iran (Islamic Rep. of),Refugees (incl. refugee-like situations),3 1331 | 2014,South Africa,Iran (Islamic Rep. of),Asylum-seekers,4 1332 | 2014,South Africa,Iraq,Refugees (incl. refugee-like situations),26 1333 | 2014,South Africa,Iraq,Asylum-seekers,11 1334 | 2014,South Africa,Iraq,Returned refugees,26 1335 | 2014,South Africa,Ireland,Refugees (incl. refugee-like situations),1 1336 | 2014,South Africa,Ireland,Asylum-seekers,3 1337 | 2014,South Africa,Israel,Asylum-seekers,1 1338 | 2014,South Africa,Italy,Refugees (incl. refugee-like situations),1 1339 | 2014,South Africa,Japan,Refugees (incl. refugee-like situations),1 1340 | 2014,South Africa,Jordan,Refugees (incl. refugee-like situations),2 1341 | 2014,South Africa,Jordan,Asylum-seekers,7 1342 | 2014,South Africa,Kenya,Refugees (incl. refugee-like situations),199 1343 | 2014,South Africa,Kenya,Asylum-seekers,409 1344 | 2014,South Africa,Kyrgyzstan,Refugees (incl. refugee-like situations),6 1345 | 2014,South Africa,Lebanon,Refugees (incl. refugee-like situations),3 1346 | 2014,South Africa,Lebanon,Asylum-seekers,2 1347 | 2014,South Africa,Lesotho,Refugees (incl. refugee-like situations),3 1348 | 2014,South Africa,Lesotho,Asylum-seekers,652 1349 | 2014,South Africa,Liberia,Refugees (incl. refugee-like situations),85 1350 | 2014,South Africa,Liberia,Asylum-seekers,43 1351 | 2014,South Africa,Libya,Refugees (incl. refugee-like situations),1 1352 | 2014,South Africa,Libya,Asylum-seekers,9 1353 | 2014,South Africa,Madagascar,Asylum-seekers,4 1354 | 2014,South Africa,Malawi,Refugees (incl. refugee-like situations),23 1355 | 2014,South Africa,Malawi,Asylum-seekers,3583 1356 | 2014,South Africa,Mali,Refugees (incl. refugee-like situations),6 1357 | 2014,South Africa,Mali,Asylum-seekers,61 1358 | 2014,South Africa,Mauritania,Asylum-seekers,1 1359 | 2014,South Africa,Morocco,Refugees (incl. refugee-like situations),6 1360 | 2014,South Africa,Morocco,Asylum-seekers,7 1361 | 2014,South Africa,Mozambique,Refugees (incl. refugee-like situations),3 1362 | 2014,South Africa,Mozambique,Asylum-seekers,1369 1363 | 2014,South Africa,Myanmar,Refugees (incl. refugee-like situations),3 1364 | 2014,South Africa,Myanmar,Asylum-seekers,1 1365 | 2014,South Africa,Namibia,Refugees (incl. refugee-like situations),4 1366 | 2014,South Africa,Namibia,Asylum-seekers,2 1367 | 2014,South Africa,Nepal,Asylum-seekers,86 1368 | 2014,South Africa,Niger,Refugees (incl. refugee-like situations),5 1369 | 2014,South Africa,Niger,Asylum-seekers,11 1370 | 2014,South Africa,Nigeria,Refugees (incl. refugee-like situations),17 1371 | 2014,South Africa,Nigeria,Asylum-seekers,5154 1372 | 2014,South Africa,Norfolk Island,Refugees (incl. refugee-like situations),1 1373 | 2014,South Africa,Oman,Refugees (incl. refugee-like situations),3 1374 | 2014,South Africa,Pakistan,Refugees (incl. refugee-like situations),37 1375 | 2014,South Africa,Pakistan,Asylum-seekers,5489 1376 | 2014,South Africa,Palau,Asylum-seekers,1 1377 | 2014,South Africa,Palestinian,Refugees (incl. refugee-like situations),32 1378 | 2014,South Africa,Philippines,Asylum-seekers,6 1379 | 2014,South Africa,Poland,Refugees (incl. refugee-like situations),1 1380 | 2014,South Africa,Russian Federation,Refugees (incl. refugee-like situations),13 1381 | 2014,South Africa,Russian Federation,Asylum-seekers,1 1382 | 2014,South Africa,Rwanda,Refugees (incl. refugee-like situations),1814 1383 | 2014,South Africa,Rwanda,Asylum-seekers,238 1384 | 2014,South Africa,Rwanda,Returned refugees,1 1385 | 2014,South Africa,Saint Kitts and Nevis,Refugees (incl. refugee-like situations),2 1386 | 2014,South Africa,Saint Kitts and Nevis,Asylum-seekers,1 1387 | 2014,South Africa,Samoa,Asylum-seekers,2 1388 | 2014,South Africa,Senegal,Refugees (incl. refugee-like situations),4 1389 | 2014,South Africa,Senegal,Asylum-seekers,436 1390 | 2014,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Refugees (incl. refugee-like situations),2 1391 | 2014,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Asylum-seekers,6 1392 | 2014,South Africa,Seychelles,Refugees (incl. refugee-like situations),3 1393 | 2014,South Africa,Sierra Leone,Refugees (incl. refugee-like situations),31 1394 | 2014,South Africa,Sierra Leone,Asylum-seekers,6 1395 | 2014,South Africa,Solomon Islands,Refugees (incl. refugee-like situations),12 1396 | 2014,South Africa,Solomon Islands,Asylum-seekers,4 1397 | 2014,South Africa,Somalia,Refugees (incl. refugee-like situations),40133 1398 | 2014,South Africa,Somalia,Asylum-seekers,3360 1399 | 2014,South Africa,Sri Lanka,Refugees (incl. refugee-like situations),15 1400 | 2014,South Africa,Sri Lanka,Asylum-seekers,15 1401 | 2014,South Africa,Sudan,Refugees (incl. refugee-like situations),183 1402 | 2014,South Africa,Sudan,Asylum-seekers,50 1403 | 2014,South Africa,Swaziland,Refugees (incl. refugee-like situations),12 1404 | 2014,South Africa,Swaziland,Asylum-seekers,98 1405 | 2014,South Africa,Sweden,Refugees (incl. refugee-like situations),1 1406 | 2014,South Africa,Syrian Arab Rep.,Refugees (incl. refugee-like situations),28 1407 | 2014,South Africa,Syrian Arab Rep.,Asylum-seekers,37 1408 | 2014,South Africa,Thailand,Asylum-seekers,14 1409 | 2014,South Africa,The former Yugoslav Republic of Macedonia,Asylum-seekers,1 1410 | 2014,South Africa,Timor-Leste,Refugees (incl. refugee-like situations),1 1411 | 2014,South Africa,Timor-Leste,Asylum-seekers,1 1412 | 2014,South Africa,Togo,Refugees (incl. refugee-like situations),8 1413 | 2014,South Africa,Togo,Asylum-seekers,24 1414 | 2014,South Africa,Tunisia,Asylum-seekers,4 1415 | 2014,South Africa,Turkey,Refugees (incl. refugee-like situations),4 1416 | 2014,South Africa,Turkey,Asylum-seekers,3 1417 | 2014,South Africa,Tuvalu,Asylum-seekers,1 1418 | 2014,South Africa,Uganda,Refugees (incl. refugee-like situations),696 1419 | 2014,South Africa,Uganda,Asylum-seekers,1762 1420 | 2014,South Africa,Ukraine,Refugees (incl. refugee-like situations),8 1421 | 2014,South Africa,Ukraine,Asylum-seekers,6 1422 | 2014,South Africa,United Kingdom,Refugees (incl. refugee-like situations),1 1423 | 2014,South Africa,United Rep. of Tanzania,Refugees (incl. refugee-like situations),50 1424 | 2014,South Africa,United Rep. of Tanzania,Asylum-seekers,650 1425 | 2014,South Africa,Uzbekistan,Asylum-seekers,1 1426 | 2014,South Africa,Various/Unknown,Refugees (incl. refugee-like situations),6 1427 | 2014,South Africa,Various/Unknown,Asylum-seekers,358056 1428 | 2014,South Africa,Viet Nam,Asylum-seekers,2 1429 | 2014,South Africa,Wallis and Futuna Islands ,Asylum-seekers,1 1430 | 2014,South Africa,Yemen,Refugees (incl. refugee-like situations),2 1431 | 2014,South Africa,Yemen,Asylum-seekers,3 1432 | 2014,South Africa,Zambia,Refugees (incl. refugee-like situations),85 1433 | 2014,South Africa,Zambia,Asylum-seekers,196 1434 | 2014,South Africa,Zimbabwe,Refugees (incl. refugee-like situations),6217 1435 | 2014,South Africa,Zimbabwe,Asylum-seekers,40823 1436 | 2015,South Africa,Afghanistan,Refugees (incl. refugee-like situations),10 1437 | 2015,South Africa,Afghanistan,Asylum-seekers,5 1438 | 2015,South Africa,Albania,Asylum-seekers,1 1439 | 2015,South Africa,Algeria,Refugees (incl. refugee-like situations),4 1440 | 2015,South Africa,Algeria,Asylum-seekers,242 1441 | 2015,South Africa,Andorra,Refugees (incl. refugee-like situations),2 1442 | 2015,South Africa,Angola,Refugees (incl. refugee-like situations),3042 1443 | 2015,South Africa,Angola,Asylum-seekers,220 1444 | 2015,South Africa,Anguilla,Refugees (incl. refugee-like situations),1 1445 | 2015,South Africa,Bahamas,Refugees (incl. refugee-like situations),3 1446 | 2015,South Africa,Bahamas,Asylum-seekers,3 1447 | 2015,South Africa,Bangladesh,Refugees (incl. refugee-like situations),861 1448 | 2015,South Africa,Bangladesh,Asylum-seekers,9340 1449 | 2015,South Africa,Belarus,Asylum-seekers,1 1450 | 2015,South Africa,Benin,Refugees (incl. refugee-like situations),1 1451 | 2015,South Africa,Benin,Asylum-seekers,60 1452 | 2015,South Africa,Bosnia and Herzegovina,Refugees (incl. refugee-like situations),1 1453 | 2015,South Africa,Bosnia and Herzegovina,Asylum-seekers,1 1454 | 2015,South Africa,Botswana,Asylum-seekers,24 1455 | 2015,South Africa,Brazil,Refugees (incl. refugee-like situations),1 1456 | 2015,South Africa,Bulgaria,Refugees (incl. refugee-like situations),5 1457 | 2015,South Africa,Bulgaria,Asylum-seekers,4 1458 | 2015,South Africa,Burkina Faso,Asylum-seekers,50 1459 | 2015,South Africa,Burundi,Refugees (incl. refugee-like situations),3819 1460 | 2015,South Africa,Burundi,Asylum-seekers,1841 1461 | 2015,South Africa,Cambodia,Refugees (incl. refugee-like situations),1 1462 | 2015,South Africa,Cameroon,Refugees (incl. refugee-like situations),540 1463 | 2015,South Africa,Cameroon,Asylum-seekers,951 1464 | 2015,South Africa,Central African Rep.,Refugees (incl. refugee-like situations),8 1465 | 2015,South Africa,Central African Rep.,Asylum-seekers,8 1466 | 2015,South Africa,Chad,Refugees (incl. refugee-like situations),5 1467 | 2015,South Africa,Chad,Asylum-seekers,1 1468 | 2015,South Africa,Chile,Asylum-seekers,2 1469 | 2015,South Africa,China,Refugees (incl. refugee-like situations),6 1470 | 2015,South Africa,China,Asylum-seekers,2050 1471 | 2015,South Africa,"China, Macao SAR",Refugees (incl. refugee-like situations),4 1472 | 2015,South Africa,"China, Macao SAR",Asylum-seekers,1 1473 | 2015,South Africa,Colombia,Refugees (incl. refugee-like situations),1 1474 | 2015,South Africa,Colombia,Asylum-seekers,2 1475 | 2015,South Africa,Comoros,Refugees (incl. refugee-like situations),5 1476 | 2015,South Africa,Comoros,Asylum-seekers,29 1477 | 2015,South Africa,Congo,Refugees (incl. refugee-like situations),6566 1478 | 2015,South Africa,Congo,Asylum-seekers,1096 1479 | 2015,South Africa,Cote d'Ivoire,Refugees (incl. refugee-like situations),48 1480 | 2015,South Africa,Cote d'Ivoire,Asylum-seekers,141 1481 | 2015,South Africa,Cuba,Asylum-seekers,1 1482 | 2015,South Africa,Czech Rep.,Asylum-seekers,3 1483 | 2015,South Africa,Dem. Rep. of the Congo,Refugees (incl. refugee-like situations),32582 1484 | 2015,South Africa,Dem. Rep. of the Congo,Asylum-seekers,16295 1485 | 2015,South Africa,Dem. Rep. of the Congo,Returned refugees,4 1486 | 2015,South Africa,Djibouti,Refugees (incl. refugee-like situations),1 1487 | 2015,South Africa,Egypt,Refugees (incl. refugee-like situations),5 1488 | 2015,South Africa,Egypt,Asylum-seekers,700 1489 | 2015,South Africa,El Salvador,Asylum-seekers,1 1490 | 2015,South Africa,Eritrea,Refugees (incl. refugee-like situations),2338 1491 | 2015,South Africa,Eritrea,Asylum-seekers,422 1492 | 2015,South Africa,Estonia,Refugees (incl. refugee-like situations),6 1493 | 2015,South Africa,Estonia,Asylum-seekers,8 1494 | 2015,South Africa,Ethiopia,Refugees (incl. refugee-like situations),20324 1495 | 2015,South Africa,Ethiopia,Asylum-seekers,19289 1496 | 2015,South Africa,Ethiopia,Returned refugees,4 1497 | 2015,South Africa,Fiji,Asylum-seekers,1 1498 | 2015,South Africa,France,Refugees (incl. refugee-like situations),2 1499 | 2015,South Africa,Gabon,Refugees (incl. refugee-like situations),2 1500 | 2015,South Africa,Gabon,Asylum-seekers,21 1501 | 2015,South Africa,Gambia,Asylum-seekers,17 1502 | 2015,South Africa,Germany,Asylum-seekers,2 1503 | 2015,South Africa,Ghana,Refugees (incl. refugee-like situations),16 1504 | 2015,South Africa,Ghana,Asylum-seekers,3035 1505 | 2015,South Africa,Guinea,Refugees (incl. refugee-like situations),1 1506 | 2015,South Africa,Guinea,Asylum-seekers,38 1507 | 2015,South Africa,Guinea-Bissau,Refugees (incl. refugee-like situations),1 1508 | 2015,South Africa,Guinea-Bissau,Asylum-seekers,5 1509 | 2015,South Africa,Haiti,Asylum-seekers,1 1510 | 2015,South Africa,Hungary,Asylum-seekers,17 1511 | 2015,South Africa,Iceland,Asylum-seekers,3 1512 | 2015,South Africa,India,Refugees (incl. refugee-like situations),11 1513 | 2015,South Africa,India,Asylum-seekers,5533 1514 | 2015,South Africa,Indonesia,Asylum-seekers,1 1515 | 2015,South Africa,Iran (Islamic Rep. of),Refugees (incl. refugee-like situations),3 1516 | 2015,South Africa,Iran (Islamic Rep. of),Asylum-seekers,4 1517 | 2015,South Africa,Iraq,Refugees (incl. refugee-like situations),26 1518 | 2015,South Africa,Iraq,Asylum-seekers,16 1519 | 2015,South Africa,Iraq,Returned refugees,9 1520 | 2015,South Africa,Ireland,Refugees (incl. refugee-like situations),1 1521 | 2015,South Africa,Ireland,Asylum-seekers,3 1522 | 2015,South Africa,Israel,Asylum-seekers,2 1523 | 2015,South Africa,Italy,Refugees (incl. refugee-like situations),1 1524 | 2015,South Africa,Jamaica,Asylum-seekers,3 1525 | 2015,South Africa,Japan,Refugees (incl. refugee-like situations),1 1526 | 2015,South Africa,Jordan,Refugees (incl. refugee-like situations),2 1527 | 2015,South Africa,Jordan,Asylum-seekers,12 1528 | 2015,South Africa,Kenya,Refugees (incl. refugee-like situations),206 1529 | 2015,South Africa,Kenya,Asylum-seekers,590 1530 | 2015,South Africa,Kyrgyzstan,Refugees (incl. refugee-like situations),6 1531 | 2015,South Africa,Kyrgyzstan,Asylum-seekers,1 1532 | 2015,South Africa,Lebanon,Refugees (incl. refugee-like situations),3 1533 | 2015,South Africa,Lebanon,Asylum-seekers,2 1534 | 2015,South Africa,Lesotho,Refugees (incl. refugee-like situations),3 1535 | 2015,South Africa,Lesotho,Asylum-seekers,1081 1536 | 2015,South Africa,Liberia,Refugees (incl. refugee-like situations),86 1537 | 2015,South Africa,Liberia,Asylum-seekers,47 1538 | 2015,South Africa,Libya,Refugees (incl. refugee-like situations),1 1539 | 2015,South Africa,Libya,Asylum-seekers,10 1540 | 2015,South Africa,Madagascar,Asylum-seekers,7 1541 | 2015,South Africa,Malawi,Refugees (incl. refugee-like situations),23 1542 | 2015,South Africa,Malawi,Asylum-seekers,5350 1543 | 2015,South Africa,Mali,Refugees (incl. refugee-like situations),6 1544 | 2015,South Africa,Mali,Asylum-seekers,128 1545 | 2015,South Africa,Mauritania,Asylum-seekers,1 1546 | 2015,South Africa,Mauritius,Asylum-seekers,3 1547 | 2015,South Africa,Morocco,Refugees (incl. refugee-like situations),6 1548 | 2015,South Africa,Morocco,Asylum-seekers,16 1549 | 2015,South Africa,Mozambique,Refugees (incl. refugee-like situations),3 1550 | 2015,South Africa,Mozambique,Asylum-seekers,2125 1551 | 2015,South Africa,Myanmar,Refugees (incl. refugee-like situations),3 1552 | 2015,South Africa,Myanmar,Asylum-seekers,4 1553 | 2015,South Africa,Namibia,Refugees (incl. refugee-like situations),4 1554 | 2015,South Africa,Namibia,Asylum-seekers,3 1555 | 2015,South Africa,Nepal,Asylum-seekers,140 1556 | 2015,South Africa,Niger,Refugees (incl. refugee-like situations),5 1557 | 2015,South Africa,Niger,Asylum-seekers,59 1558 | 2015,South Africa,Nigeria,Refugees (incl. refugee-like situations),9 1559 | 2015,South Africa,Nigeria,Asylum-seekers,10713 1560 | 2015,South Africa,Norfolk Island,Refugees (incl. refugee-like situations),1 1561 | 2015,South Africa,Oman,Refugees (incl. refugee-like situations),3 1562 | 2015,South Africa,Pakistan,Refugees (incl. refugee-like situations),37 1563 | 2015,South Africa,Pakistan,Asylum-seekers,8167 1564 | 2015,South Africa,Palau,Asylum-seekers,1 1565 | 2015,South Africa,Palestinian,Refugees (incl. refugee-like situations),45 1566 | 2015,South Africa,Palestinian,Asylum-seekers,20 1567 | 2015,South Africa,Philippines,Asylum-seekers,6 1568 | 2015,South Africa,Poland,Refugees (incl. refugee-like situations),1 1569 | 2015,South Africa,Portugal,Asylum-seekers,1 1570 | 2015,South Africa,Rep. of Moldova,Asylum-seekers,1 1571 | 2015,South Africa,Russian Federation,Refugees (incl. refugee-like situations),13 1572 | 2015,South Africa,Russian Federation,Asylum-seekers,3 1573 | 2015,South Africa,Rwanda,Refugees (incl. refugee-like situations),1881 1574 | 2015,South Africa,Rwanda,Asylum-seekers,303 1575 | 2015,South Africa,Rwanda,Returned refugees,1 1576 | 2015,South Africa,Saint Kitts and Nevis,Refugees (incl. refugee-like situations),2 1577 | 2015,South Africa,Saint Kitts and Nevis,Asylum-seekers,1 1578 | 2015,South Africa,Samoa,Asylum-seekers,2 1579 | 2015,South Africa,Sao Tome and Principe,Asylum-seekers,2 1580 | 2015,South Africa,Senegal,Refugees (incl. refugee-like situations),4 1581 | 2015,South Africa,Senegal,Asylum-seekers,650 1582 | 2015,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Refugees (incl. refugee-like situations),2 1583 | 2015,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Asylum-seekers,8 1584 | 2015,South Africa,Seychelles,Refugees (incl. refugee-like situations),3 1585 | 2015,South Africa,Sierra Leone,Refugees (incl. refugee-like situations),32 1586 | 2015,South Africa,Sierra Leone,Asylum-seekers,11 1587 | 2015,South Africa,Solomon Islands,Refugees (incl. refugee-like situations),10 1588 | 2015,South Africa,Solomon Islands,Asylum-seekers,5 1589 | 2015,South Africa,Somalia,Refugees (incl. refugee-like situations),41458 1590 | 2015,South Africa,Somalia,Asylum-seekers,4207 1591 | 2015,South Africa,Sri Lanka,Refugees (incl. refugee-like situations),15 1592 | 2015,South Africa,Sri Lanka,Asylum-seekers,29 1593 | 2015,South Africa,Sudan,Refugees (incl. refugee-like situations),192 1594 | 2015,South Africa,Sudan,Asylum-seekers,68 1595 | 2015,South Africa,Swaziland,Refugees (incl. refugee-like situations),10 1596 | 2015,South Africa,Swaziland,Asylum-seekers,123 1597 | 2015,South Africa,Sweden,Refugees (incl. refugee-like situations),1 1598 | 2015,South Africa,Syrian Arab Rep.,Refugees (incl. refugee-like situations),31 1599 | 2015,South Africa,Syrian Arab Rep.,Asylum-seekers,57 1600 | 2015,South Africa,Thailand,Asylum-seekers,31 1601 | 2015,South Africa,The former Yugoslav Republic of Macedonia,Asylum-seekers,2 1602 | 2015,South Africa,Timor-Leste,Refugees (incl. refugee-like situations),1 1603 | 2015,South Africa,Timor-Leste,Asylum-seekers,1 1604 | 2015,South Africa,Togo,Refugees (incl. refugee-like situations),12 1605 | 2015,South Africa,Togo,Asylum-seekers,40 1606 | 2015,South Africa,Tunisia,Asylum-seekers,5 1607 | 2015,South Africa,Turkey,Refugees (incl. refugee-like situations),6 1608 | 2015,South Africa,Turkey,Asylum-seekers,3 1609 | 2015,South Africa,Tuvalu,Asylum-seekers,1 1610 | 2015,South Africa,Uganda,Refugees (incl. refugee-like situations),729 1611 | 2015,South Africa,Uganda,Asylum-seekers,2517 1612 | 2015,South Africa,Ukraine,Refugees (incl. refugee-like situations),8 1613 | 2015,South Africa,Ukraine,Asylum-seekers,11 1614 | 2015,South Africa,United Kingdom,Refugees (incl. refugee-like situations),1 1615 | 2015,South Africa,United Rep. of Tanzania,Refugees (incl. refugee-like situations),50 1616 | 2015,South Africa,United Rep. of Tanzania,Asylum-seekers,1023 1617 | 2015,South Africa,Uzbekistan,Asylum-seekers,1 1618 | 2015,South Africa,Various/Unknown,Refugees (incl. refugee-like situations),26 1619 | 2015,South Africa,Various/Unknown,Asylum-seekers,940668 1620 | 2015,South Africa,Viet Nam,Asylum-seekers,3 1621 | 2015,South Africa,Wallis and Futuna Islands ,Asylum-seekers,1 1622 | 2015,South Africa,Western Sahara,Asylum-seekers,1 1623 | 2015,South Africa,Yemen,Refugees (incl. refugee-like situations),2 1624 | 2015,South Africa,Yemen,Asylum-seekers,8 1625 | 2015,South Africa,Zambia,Refugees (incl. refugee-like situations),90 1626 | 2015,South Africa,Zambia,Asylum-seekers,318 1627 | 2015,South Africa,Zimbabwe,Refugees (incl. refugee-like situations),6358 1628 | 2015,South Africa,Zimbabwe,Asylum-seekers,55978 1629 | 2016,South Africa,Afghanistan,Refugees (incl. refugee-like situations),6 1630 | 2016,South Africa,Algeria,Refugees (incl. refugee-like situations),5 1631 | 2016,South Africa,Algeria,Asylum-seekers,37 1632 | 2016,South Africa,Andorra,Refugees (incl. refugee-like situations),1 1633 | 2016,South Africa,Angola,Asylum-seekers,172 1634 | 2016,South Africa,Anguilla,Refugees (incl. refugee-like situations),1 1635 | 2016,South Africa,Bahamas,Refugees (incl. refugee-like situations),2 1636 | 2016,South Africa,Bahamas,Asylum-seekers,2 1637 | 2016,South Africa,Bangladesh,Refugees (incl. refugee-like situations),328 1638 | 2016,South Africa,Bangladesh,Asylum-seekers,1623 1639 | 2016,South Africa,Benin,Refugees (incl. refugee-like situations),2 1640 | 2016,South Africa,Benin,Asylum-seekers,10 1641 | 2016,South Africa,Bolivia (Plurinational State of),Asylum-seekers,1 1642 | 2016,South Africa,Botswana,Asylum-seekers,25 1643 | 2016,South Africa,Bulgaria,Refugees (incl. refugee-like situations),4 1644 | 2016,South Africa,Burundi,Refugees (incl. refugee-like situations),2980 1645 | 2016,South Africa,Burundi,Asylum-seekers,430 1646 | 2016,South Africa,Burundi,Returned refugees,31 1647 | 2016,South Africa,Cameroon,Refugees (incl. refugee-like situations),396 1648 | 2016,South Africa,Cameroon,Asylum-seekers,502 1649 | 2016,South Africa,Central African Rep.,Refugees (incl. refugee-like situations),5 1650 | 2016,South Africa,Central African Rep.,Asylum-seekers,7 1651 | 2016,South Africa,Chad,Refugees (incl. refugee-like situations),4 1652 | 2016,South Africa,China,Refugees (incl. refugee-like situations),4 1653 | 2016,South Africa,China,Asylum-seekers,1372 1654 | 2016,South Africa,"China, Macao SAR",Refugees (incl. refugee-like situations),3 1655 | 2016,South Africa,"China, Macao SAR",Asylum-seekers,1 1656 | 2016,South Africa,Colombia,Refugees (incl. refugee-like situations),1 1657 | 2016,South Africa,Colombia,Asylum-seekers,3 1658 | 2016,South Africa,Comoros,Refugees (incl. refugee-like situations),3 1659 | 2016,South Africa,Comoros,Asylum-seekers,19 1660 | 2016,South Africa,Congo,Refugees (incl. refugee-like situations),5394 1661 | 2016,South Africa,Congo,Asylum-seekers,525 1662 | 2016,South Africa,Cote d'Ivoire,Refugees (incl. refugee-like situations),40 1663 | 2016,South Africa,Cote d'Ivoire,Asylum-seekers,25 1664 | 2016,South Africa,Cuba,Asylum-seekers,1 1665 | 2016,South Africa,Dem. Rep. of the Congo,Refugees (incl. refugee-like situations),26156 1666 | 2016,South Africa,Dem. Rep. of the Congo,Asylum-seekers,5967 1667 | 2016,South Africa,Dem. Rep. of the Congo,Returned refugees,6 1668 | 2016,South Africa,Djibouti,Refugees (incl. refugee-like situations),1 1669 | 2016,South Africa,Egypt,Refugees (incl. refugee-like situations),4 1670 | 2016,South Africa,Egypt,Asylum-seekers,486 1671 | 2016,South Africa,El Salvador,Asylum-seekers,1 1672 | 2016,South Africa,Eritrea,Refugees (incl. refugee-like situations),1978 1673 | 2016,South Africa,Eritrea,Asylum-seekers,51 1674 | 2016,South Africa,Estonia,Refugees (incl. refugee-like situations),7 1675 | 2016,South Africa,Estonia,Asylum-seekers,5 1676 | 2016,South Africa,Ethiopia,Refugees (incl. refugee-like situations),17776 1677 | 2016,South Africa,Ethiopia,Asylum-seekers,3784 1678 | 2016,South Africa,France,Refugees (incl. refugee-like situations),1 1679 | 2016,South Africa,Gabon,Refugees (incl. refugee-like situations),1 1680 | 2016,South Africa,Gabon,Asylum-seekers,6 1681 | 2016,South Africa,Gambia,Asylum-seekers,3 1682 | 2016,South Africa,Germany,Asylum-seekers,1 1683 | 2016,South Africa,Ghana,Refugees (incl. refugee-like situations),6 1684 | 2016,South Africa,Ghana,Asylum-seekers,1420 1685 | 2016,South Africa,Guinea,Refugees (incl. refugee-like situations),1 1686 | 2016,South Africa,Guinea,Asylum-seekers,5 1687 | 2016,South Africa,Guinea-Bissau,Refugees (incl. refugee-like situations),1 1688 | 2016,South Africa,Guinea-Bissau,Asylum-seekers,2 1689 | 2016,South Africa,Hungary,Asylum-seekers,19 1690 | 2016,South Africa,Iceland,Asylum-seekers,3 1691 | 2016,South Africa,India,Refugees (incl. refugee-like situations),6 1692 | 2016,South Africa,India,Asylum-seekers,1559 1693 | 2016,South Africa,Iran (Islamic Rep. of),Refugees (incl. refugee-like situations),2 1694 | 2016,South Africa,Iran (Islamic Rep. of),Asylum-seekers,1 1695 | 2016,South Africa,Iraq,Refugees (incl. refugee-like situations),17 1696 | 2016,South Africa,Iraq,Asylum-seekers,10 1697 | 2016,South Africa,Ireland,Refugees (incl. refugee-like situations),1 1698 | 2016,South Africa,Ireland,Asylum-seekers,2 1699 | 2016,South Africa,Israel,Asylum-seekers,1 1700 | 2016,South Africa,Italy,Refugees (incl. refugee-like situations),1 1701 | 2016,South Africa,Jamaica,Asylum-seekers,1 1702 | 2016,South Africa,Japan,Refugees (incl. refugee-like situations),1 1703 | 2016,South Africa,Jordan,Refugees (incl. refugee-like situations),1 1704 | 2016,South Africa,Jordan,Asylum-seekers,7 1705 | 2016,South Africa,Kenya,Refugees (incl. refugee-like situations),153 1706 | 2016,South Africa,Kenya,Asylum-seekers,94 1707 | 2016,South Africa,Kenya,Returned refugees,2 1708 | 2016,South Africa,Kyrgyzstan,Refugees (incl. refugee-like situations),4 1709 | 2016,South Africa,Lebanon,Refugees (incl. refugee-like situations),2 1710 | 2016,South Africa,Lebanon,Asylum-seekers,3 1711 | 2016,South Africa,Lesotho,Refugees (incl. refugee-like situations),2 1712 | 2016,South Africa,Lesotho,Asylum-seekers,688 1713 | 2016,South Africa,Liberia,Refugees (incl. refugee-like situations),58 1714 | 2016,South Africa,Liberia,Asylum-seekers,15 1715 | 2016,South Africa,Libya,Refugees (incl. refugee-like situations),1 1716 | 2016,South Africa,Libya,Asylum-seekers,9 1717 | 2016,South Africa,Madagascar,Asylum-seekers,2 1718 | 2016,South Africa,Malawi,Refugees (incl. refugee-like situations),13 1719 | 2016,South Africa,Malawi,Asylum-seekers,3396 1720 | 2016,South Africa,Mali,Refugees (incl. refugee-like situations),4 1721 | 2016,South Africa,Mali,Asylum-seekers,72 1722 | 2016,South Africa,Mauritania,Asylum-seekers,1 1723 | 2016,South Africa,Morocco,Refugees (incl. refugee-like situations),4 1724 | 2016,South Africa,Morocco,Asylum-seekers,6 1725 | 2016,South Africa,Mozambique,Refugees (incl. refugee-like situations),2 1726 | 2016,South Africa,Mozambique,Asylum-seekers,1456 1727 | 2016,South Africa,Myanmar,Refugees (incl. refugee-like situations),2 1728 | 2016,South Africa,Myanmar,Asylum-seekers,1 1729 | 2016,South Africa,Namibia,Refugees (incl. refugee-like situations),3 1730 | 2016,South Africa,Namibia,Asylum-seekers,1 1731 | 2016,South Africa,Nepal,Asylum-seekers,35 1732 | 2016,South Africa,Niger,Refugees (incl. refugee-like situations),4 1733 | 2016,South Africa,Nigeria,Refugees (incl. refugee-like situations),6 1734 | 2016,South Africa,Nigeria,Asylum-seekers,3446 1735 | 2016,South Africa,Norfolk Island,Refugees (incl. refugee-like situations),1 1736 | 2016,South Africa,Oman,Refugees (incl. refugee-like situations),2 1737 | 2016,South Africa,Pakistan,Refugees (incl. refugee-like situations),17 1738 | 2016,South Africa,Pakistan,Asylum-seekers,2644 1739 | 2016,South Africa,Palau,Asylum-seekers,1 1740 | 2016,South Africa,Palestinian,Refugees (incl. refugee-like situations),38 1741 | 2016,South Africa,Palestinian,Asylum-seekers,13 1742 | 2016,South Africa,Philippines,Asylum-seekers,6 1743 | 2016,South Africa,Poland,Refugees (incl. refugee-like situations),1 1744 | 2016,South Africa,Russian Federation,Refugees (incl. refugee-like situations),11 1745 | 2016,South Africa,Russian Federation,Asylum-seekers,1 1746 | 2016,South Africa,Rwanda,Refugees (incl. refugee-like situations),1381 1747 | 2016,South Africa,Rwanda,Asylum-seekers,69 1748 | 2016,South Africa,Saint Kitts and Nevis,Refugees (incl. refugee-like situations),2 1749 | 2016,South Africa,Saint Kitts and Nevis,Asylum-seekers,1 1750 | 2016,South Africa,Samoa,Asylum-seekers,2 1751 | 2016,South Africa,Sao Tome and Principe,Asylum-seekers,2 1752 | 2016,South Africa,Senegal,Refugees (incl. refugee-like situations),3 1753 | 2016,South Africa,Senegal,Asylum-seekers,139 1754 | 2016,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Refugees (incl. refugee-like situations),1 1755 | 2016,South Africa,Serbia and Kosovo (S/RES/1244 (1999)),Asylum-seekers,5 1756 | 2016,South Africa,Seychelles,Refugees (incl. refugee-like situations),2 1757 | 2016,South Africa,Sierra Leone,Refugees (incl. refugee-like situations),20 1758 | 2016,South Africa,Sierra Leone,Asylum-seekers,1 1759 | 2016,South Africa,Solomon Islands,Refugees (incl. refugee-like situations),8 1760 | 2016,South Africa,Solomon Islands,Asylum-seekers,6 1761 | 2016,South Africa,Somalia,Refugees (incl. refugee-like situations),28695 1762 | 2016,South Africa,Somalia,Asylum-seekers,2690 1763 | 2016,South Africa,Sri Lanka,Refugees (incl. refugee-like situations),15 1764 | 2016,South Africa,Sri Lanka,Asylum-seekers,18 1765 | 2016,South Africa,Sudan,Refugees (incl. refugee-like situations),115 1766 | 2016,South Africa,Sudan,Asylum-seekers,31 1767 | 2016,South Africa,Swaziland,Refugees (incl. refugee-like situations),8 1768 | 2016,South Africa,Swaziland,Asylum-seekers,100 1769 | 2016,South Africa,Sweden,Refugees (incl. refugee-like situations),1 1770 | 2016,South Africa,Syrian Arab Rep.,Refugees (incl. refugee-like situations),44 1771 | 2016,South Africa,Syrian Arab Rep.,Asylum-seekers,49 1772 | 2016,South Africa,Thailand,Asylum-seekers,21 1773 | 2016,South Africa,Timor-Leste,Refugees (incl. refugee-like situations),1 1774 | 2016,South Africa,Togo,Refugees (incl. refugee-like situations),12 1775 | 2016,South Africa,Togo,Asylum-seekers,21 1776 | 2016,South Africa,Tunisia,Asylum-seekers,3 1777 | 2016,South Africa,Turkey,Refugees (incl. refugee-like situations),7 1778 | 2016,South Africa,Turkey,Asylum-seekers,1 1779 | 2016,South Africa,Tuvalu,Asylum-seekers,1 1780 | 2016,South Africa,Uganda,Refugees (incl. refugee-like situations),552 1781 | 2016,South Africa,Uganda,Asylum-seekers,842 1782 | 2016,South Africa,Ukraine,Refugees (incl. refugee-like situations),6 1783 | 2016,South Africa,Ukraine,Asylum-seekers,8 1784 | 2016,South Africa,United Kingdom,Refugees (incl. refugee-like situations),1 1785 | 2016,South Africa,United Rep. of Tanzania,Refugees (incl. refugee-like situations),36 1786 | 2016,South Africa,United Rep. of Tanzania,Asylum-seekers,477 1787 | 2016,South Africa,Uzbekistan,Asylum-seekers,1 1788 | 2016,South Africa,Various/Unknown,Asylum-seekers,142380 1789 | 2016,South Africa,Venezuela (Bolivarian Republic of),Asylum-seekers,1 1790 | 2016,South Africa,Viet Nam,Asylum-seekers,2 1791 | 2016,South Africa,Wallis and Futuna Islands ,Asylum-seekers,1 1792 | 2016,South Africa,Yemen,Refugees (incl. refugee-like situations),2 1793 | 2016,South Africa,Yemen,Asylum-seekers,8 1794 | 2016,South Africa,Zambia,Refugees (incl. refugee-like situations),67 1795 | 2016,South Africa,Zambia,Asylum-seekers,180 1796 | 2016,South Africa,Zimbabwe,Refugees (incl. refugee-like situations),4596 1797 | 2016,South Africa,Zimbabwe,Asylum-seekers,41260 1798 | 2017,South Africa,Algeria,Asylum-seekers,12 1799 | 2017,South Africa,Angola,Refugees (incl. refugee-like situations),25 1800 | 2017,South Africa,Bangladesh,Refugees (incl. refugee-like situations),319 1801 | 2017,South Africa,Bangladesh,Asylum-seekers,26366 1802 | 2017,South Africa,Burundi,Refugees (incl. refugee-like situations),3000 1803 | 2017,South Africa,Burundi,Asylum-seekers,5865 1804 | 2017,South Africa,Cameroon,Refugees (incl. refugee-like situations),392 1805 | 2017,South Africa,Cameroon,Asylum-seekers,1691 1806 | 2017,South Africa,China,Asylum-seekers,171 1807 | 2017,South Africa,Congo,Refugees (incl. refugee-like situations),5261 1808 | 2017,South Africa,Congo,Asylum-seekers,8800 1809 | 2017,South Africa,Cote d'Ivoire,Refugees (incl. refugee-like situations),41 1810 | 2017,South Africa,Dem. Rep. of the Congo,Refugees (incl. refugee-like situations),26043 1811 | 2017,South Africa,Dem. Rep. of the Congo,Asylum-seekers,32537 1812 | 2017,South Africa,Eritrea,Refugees (incl. refugee-like situations),1924 1813 | 2017,South Africa,Eritrea,Asylum-seekers,704 1814 | 2017,South Africa,Ethiopia,Refugees (incl. refugee-like situations),17562 1815 | 2017,South Africa,Ethiopia,Asylum-seekers,49487 1816 | 2017,South Africa,Ghana,Asylum-seekers,2601 1817 | 2017,South Africa,India,Asylum-seekers,4459 1818 | 2017,South Africa,Kenya,Refugees (incl. refugee-like situations),155 1819 | 2017,South Africa,Kenya,Asylum-seekers,1097 1820 | 2017,South Africa,Liberia,Refugees (incl. refugee-like situations),60 1821 | 2017,South Africa,Malawi,Asylum-seekers,2761 1822 | 2017,South Africa,Mozambique,Asylum-seekers,987 1823 | 2017,South Africa,Niger,Asylum-seekers,894 1824 | 2017,South Africa,Nigeria,Asylum-seekers,8877 1825 | 2017,South Africa,Pakistan,Asylum-seekers,9993 1826 | 2017,South Africa,Palestinian,Refugees (incl. refugee-like situations),38 1827 | 2017,South Africa,Rwanda,Refugees (incl. refugee-like situations),1295 1828 | 2017,South Africa,Rwanda,Asylum-seekers,902 1829 | 2017,South Africa,Senegal,Asylum-seekers,834 1830 | 2017,South Africa,Somalia,Refugees (incl. refugee-like situations),26977 1831 | 2017,South Africa,Somalia,Asylum-seekers,4014 1832 | 2017,South Africa,Sudan,Refugees (incl. refugee-like situations),112 1833 | 2017,South Africa,Syrian Arab Rep.,Refugees (incl. refugee-like situations),45 1834 | 2017,South Africa,Uganda,Refugees (incl. refugee-like situations),549 1835 | 2017,South Africa,Uganda,Asylum-seekers,4586 1836 | 2017,South Africa,United Rep. of Tanzania,Refugees (incl. refugee-like situations),37 1837 | 2017,South Africa,United Rep. of Tanzania,Asylum-seekers,664 1838 | 2017,South Africa,Various/Unknown,Refugees (incl. refugee-like situations),237 1839 | 2017,South Africa,Various/Unknown,Asylum-seekers,3741 1840 | 2017,South Africa,Zambia,Refugees (incl. refugee-like situations),64 1841 | 2017,South Africa,Zimbabwe,Refugees (incl. refugee-like situations),4558 1842 | 2017,South Africa,Zimbabwe,Asylum-seekers,19290 1843 | -------------------------------------------------------------------------------- /final_race_plot2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/skirmer/animating_dataviz/a1d2a091a2ccccfb86a6b023c3403c04dab83d2c/final_race_plot2.gif -------------------------------------------------------------------------------- /ioslides_deck.Rmd: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Animating Plots in R" 3 | subtitle: "Chicago Data Viz Community x R Ladies Chicago" 4 | author: "Stephanie Kirmer
[www.stephaniekirmer.com](http://www.stephaniekirmer.com)
@[data_stephanie](http://www.twitter.com/data_stephanie)" 5 | date: "July 24 2019" 6 | output: 7 | ioslides_presentation: 8 | widescreen: true 9 | --- 10 | 11 | ```{r, include = FALSE} 12 | library(gapminder) 13 | library(ggplot2) 14 | library(gganimate) 15 | 16 | ``` 17 | 18 | # Agenda |
Animation: When and Why?
Introducing the Tools
Hands-On Tutorial 19 | 20 | # Follow Along! | https://github.com/skirmer/animating_dataviz 21 | 22 |
23 | Introductions, get the about-me out of the way and give a quick overview 24 | 25 |
26 | 27 | 28 | ## So You're Thinking About Animating | What are some reasons to animate a plot? 29 | 30 | ### **Bad Reasons** 31 | 32 | - It's neat 33 | - I want to show off 34 | - One of my dimensions is time 35 | 36 | ### **Good Reasons** 37 | 38 | - I have four or more meaningful data dimensions 39 | - I want to display many levels of a single dimension 40 | 41 | Also: If you need to see all the data points at the same time DON'T use animation 42 | 43 |
44 | Balance between encouragement and caution 45 | 46 | Time does not necessarily need to be represented in actual temporality 47 | Talk about what Meaningful Data Dimensions means 48 | Talk about levels of dimension as factor 49 | 50 |
51 | 52 | ## Use Case Ideas 53 | 54 |
55 | 56 | ```{r, echo = FALSE, cache=TRUE} 57 | 58 | samplep <- ggplot(gapminder, aes(gdpPercap, lifeExp, size = pop, colour = country)) + 59 | geom_point(alpha = 0.7, show.legend = FALSE) + 60 | scale_colour_manual(values = country_colors) + 61 | scale_size(range = c(2, 12)) + 62 | scale_x_log10() + 63 | facet_wrap(~continent, ncol = 2) + 64 | labs(title = 'Year: {frame_time}', x = 'GDP per capita', y = 'life expectancy') + 65 | transition_time(year) + 66 | ease_aes('linear') 67 | 68 | animate(samplep, width = 450) 69 | ``` 70 | 71 |
72 | 73 | Thomas Lin Pedersen's example from https://gganimate.com - (@[thomasp85](https://twitter.com/thomasp85)) 74 | 75 | - Data in meaningful groups changing over long periods of time 76 | - What does this plot actually tell the viewer? 77 | 78 |
79 | 80 |
81 | TLP is the creator of gganimate- encourage people to check his stuff out 82 | Discuss this specific plot- what can you learn from it and what is it not good for? 83 | 84 | - trends? y/n 85 | - comparisons across continents? y/n 86 | - comparisons within continents across countries? y/n 87 | 88 |
89 | 90 | ## More Good Examples {.smaller} 91 |
92 | 93 | ### Multiple animations 94 | - Mikey Harper: https://mikeyharper.uk/animated-plots-with-r/ 95 | 96 | ### GIS 97 | - Daniela Vasquez: https://d4tagirl.com/2017/05/how-to-plot-animated-maps-with-gganimate 98 | 99 | ### Forecasting 100 | - Hao Ye: https://haoye.us/post/2018-09-03-gganimate/ 101 | - Troy @ Peak Maximum [https://peakmaximum.com/](https://peakmaximum.com/2018/12/22/visualizing-prophet-with-gganimate/) 102 | 103 |
104 | 105 | ### Shadowing 106 | - Len Kiefer: https://twitter.com/lenkiefer/status/1102274364995719169 107 | 108 | ### Model Performance 109 | - Dariya Sydykova: [https://github.com/dariyasydykova](https://github.com/dariyasydykova/open_projects/tree/master/ROC_animation) 110 | 111 | ### Groups Over Time with Reveal 112 | - Jovan Lekovic: [https://constantlyplotting.com/](https://constantlyplotting.com/snapshots-young-people-arent-watching-much-tv/) 113 | 114 |
115 | 116 |
117 | Show these examples in realtime - tell people to google for more to get ideas 118 | It can be hard to imagine your data in an animation, so looking at examples of how other people do it can be v helpful 119 |
120 | 121 | ## How to Think About the Design 122 | 123 | - What information do you want the audience to take away? 124 | - Movement leads the viewer to interpretation of the data - this can be good or bad 125 | - Speed creates meaning, be conscious of that 126 | - Each static frame should be informative alone as well 127 | 128 | (Be open to the idea that you might not need animation to be most effective) 129 | 130 |
131 | Thinking about your own data and planning ahead is huge 132 | 133 |
134 | 135 | 136 | # The Tools 137 | 138 | ## Key Packages to Get 139 | ```{r} 140 | library(ggplot2) # make plots 141 | library(gganimate) # animate the plots 142 | library(gifski) # render gifs 143 | ``` 144 | 145 | Optional, maybe interesting packages 146 | ```{r} 147 | library(transformr) # additional smooth transformations 148 | library(patchwork) # arrange multiple plots in a single layout 149 | library(ggforce) # extended options for ggplot functionality 150 | ``` 151 | 152 |
153 | To make the example here work, you need the first three for sure- some different transformation options are made available with the fourth 154 | 155 |
156 | 157 | ## Key Concepts 158 | 159 | ### **Frame** 160 | - Animations are a series of single images (frames) strung together (think of "frames per second") 161 | 162 | ### **State** 163 | - The current grouping variable being shown. It may be one frame, or a single state representation can stay visible for multiple frames 164 | 165 | ### **Transition** 166 | - How the visual rendering moves from state to state 167 | 168 | ### **Enter/Exit** 169 | - How datapoints with no predecessor or follower are handled 170 | 171 |
172 | These are really concepts in the space of animation generally 173 | Think about old timey cartooning, or flipbooks- one cel at a time, moving past you quick enough that it looks like movement 174 | What we are doing here is not dissimilar. 175 | Frame: a measure of time. State: a property of your data. 176 | Option: look back at the examples from earlier and talk about what the states are? 177 |
178 | 179 | # Tutorial 180 | 181 | ## Project Overview 182 | 183 | Using data on displaced persons living in South Africa, show patterns and trends in refugee movement over twenty-plus years. 184 | 185 | 1. Where do most refugees come from? 186 | 187 | - These may be places with high instability or political turmoil at a given time 188 | 2. Over time, are the most common countries of origin about the same? 189 | 3. Is the number of refugees coming from the most common countries of origin stable? 190 | 191 | Follow along with the notebook: https://github.com/skirmer/animating_dataviz/blob/master/ioslides_deck.Rmd 192 | 193 | Data Source: UNHCR via data.world: [UNHCR's populations of concern residing in South Africa](https://data.world/unhcr/244d728f-06e6-4c25-8eed-69e8fe3bffe0) 194 | 195 |
196 | Example for today's purposes - no special reason 197 |
198 | 199 | ## Load Data 200 | 201 | Grab dataset of displaced persons living in South Africa 202 | ```{r, echo = FALSE} 203 | dtset <- read.csv("data/unhcr-time-series-residing-zaf-csv-1.csv", skip = 1) 204 | names(dtset) <- gsub("\\.", "_", names(dtset)) 205 | 206 | dtset <- dplyr::filter(dtset, X_date_year > 1995) 207 | 208 | knitr::kable(head(dtset, 4)) 209 | ``` 210 | 211 | 212 | ## Mutate Data 213 | 214 | Select the top 10 countries of origin for each year, apply some filters. 215 | 216 | ```{r, message=FALSE, error=FALSE, warning=FALSE} 217 | library(magrittr) 218 | library(dplyr) 219 | 220 | plotDT <- dtset %>% 221 | filter(X_country_origin != "Various/Unknown") %>% 222 | filter(X_population_type == "Refugees (incl. refugee-like situations)") %>% 223 | group_by(X_date_year) %>% 224 | mutate(rank = rank(-X_affected, ties.method = "first") * 1) %>% 225 | ungroup() %>% 226 | filter(rank <= 10) %>% 227 | data.frame() 228 | ``` 229 | 230 | ```{r, echo = FALSE} 231 | plotDT$X_country_origin <- ifelse(plotDT$X_country_origin == "Serbia and Kosovo (S/RES/1244 (1999))", "Serbia/Kosovo", as.character(plotDT$X_country_origin)) 232 | ``` 233 | 234 | ## Our New Data 235 | 236 | ```{r, echo=FALSE} 237 | knitr::kable(head(plotDT, 4)) 238 | ``` 239 | 240 | ## Grouped Bar Plot - Code 241 | 242 | Group by country, bar height is affected persons 243 | 244 | ```{r} 245 | baseplot1 <- ggplot(plotDT, 246 | aes(X_date_year, 247 | group = X_country_origin, 248 | fill = as.factor(X_country_origin), 249 | color = as.factor(X_country_origin)))+ 250 | theme_bw()+ 251 | theme(legend.position = "bottom")+ 252 | geom_bar(aes(y = X_affected), stat = "identity", position = "dodge") 253 | 254 | ``` 255 | 256 | ## Grouped Bar Plot - Rendered 257 | 258 | Ew. This is not effective. 259 | 260 | 261 | ```{r, echo=FALSE, fig.width = 10} 262 | baseplot1 263 | ``` 264 | 265 | ## What if we try to make a race plot instead? 266 | 267 | ![Let's make this!](final_race_plot2.gif) 268 | 269 | 270 | ## Adjustment 1: Flip Axis 271 | 272 | ```{r, fig.width = 8, fig.height=4} 273 | baseplot2 <- baseplot1 + 274 | ### 275 | coord_flip(clip = "off", expand = FALSE, ylim = c(0, 50000)) 276 | ### 277 | ``` 278 | 279 | ## Flipped Axis - Render 280 | 281 | ```{r, echo=FALSE, fig.width = 10} 282 | baseplot2 283 | ``` 284 | 285 | 286 | ## Adjustment 2: Stop the bar grouping (dodge), switch axis to country from year 287 | 288 | Can't use the same stub now. 289 | ```{r} 290 | baseplot3 <- ggplot(plotDT, 291 | ### 292 | aes(x=rank, 293 | group = X_country_origin, 294 | fill = as.factor(X_country_origin), 295 | color = as.factor(X_country_origin)))+ 296 | ### 297 | theme_bw()+ 298 | theme(legend.position = "bottom")+ 299 | geom_text(aes(y = 0, label = paste(X_country_origin, " ")), vjust = 0.2, hjust = 1) + 300 | coord_flip(clip = "off", expand = FALSE, ylim = c(0, 50000)) + 301 | ### 302 | geom_bar(aes(y = X_affected), stat = "identity", position = "identity") 303 | ### 304 | ``` 305 | 306 | ## Stop Grouping - Render 307 | 308 | ```{r, echo=FALSE, fig.width = 10} 309 | baseplot3 310 | ``` 311 | 312 | 313 | ## Check in: baseplot2 vs baseplot3 314 | 315 | Left side: grouped bar, sorted by year 316 | Right side: not grouped bar, sorted by rank 317 | 318 | ```{r, echo = FALSE, fig.width = 10} 319 | library(patchwork) 320 | baseplot2 + baseplot3 + plot_layout(ncol = 2) 321 | ``` 322 | 323 | 324 | ## Adjustment 3: Adjust margins, fix axis text, drop legend 325 | 326 | If your stub has a `theme()` segment, applying a new one will overrule it. 327 | ```{r} 328 | baseplot3 <- baseplot3 + 329 | ### 330 | theme(legend.position = "none", 331 | axis.ticks.y = element_blank(), 332 | axis.text.y = element_blank(), 333 | axis.title.y = element_blank(), 334 | plot.margin = margin(1,1,1,5, "cm")) 335 | ### 336 | 337 | ``` 338 | 339 | ## Drop Legend - Render 340 | 341 | ```{r, echo=FALSE, fig.width = 10} 342 | baseplot3 343 | ``` 344 | 345 | 346 | ## Adjustment 4: Prettify Y, reverse X direction 347 | 348 | ```{r} 349 | 350 | baseplot3 <- baseplot3 + 351 | ### 352 | scale_y_continuous(labels = scales::comma) + 353 | scale_x_reverse() 354 | ### 355 | ``` 356 | 357 | 358 | ## Reverse X - Render 359 | 360 | Now we have the different "frames" all layered on top of each other. 361 | ```{r, echo = FALSE, fig.width = 10} 362 | baseplot3 363 | ``` 364 | 365 | ## Decision Point: How to Proceed? | Before continuing - are we SURE animation is our best option? 366 | 367 | Revisit our goals: 368 | 369 | 1. Where do most refugees come from? 370 | 2. Over time, are the most common countries of origin about the same? 371 | 3. Is the number of refugees coming from the most common countries of origin stable? 372 | 373 | Let's try static options one last time just to be sure. 374 | 375 | ## Faceting? 376 | 377 | ```{r, echo = FALSE, fig.width = 10} 378 | baseplot3+facet_wrap(X_date_year~.) 379 | ``` 380 | 381 | No. 382 | 383 | 384 | ## Faceting? 385 | 386 | ```{r, echo = FALSE, fig.width = 10} 387 | baseplot3+facet_grid(X_date_year~.) 388 | ``` 389 | 390 | Definitely not. 391 | 392 | # Develop the Animation 393 | 394 | ## Basic Version 395 | 396 | Literally add one more line of code to your ggplot object. 397 | 398 | ```{r} 399 | 400 | animp <- baseplot3 + 401 | ### 402 | transition_states(X_date_year) 403 | ### 404 | ``` 405 | 406 | ## Basic Animation - Render 407 | 408 |
409 | ```{r, fig.width = 8, fig.height=4, echo = FALSE, cache = TRUE} 410 | animate(animp, fps = 10, duration = 20, height = 400) 411 | ``` 412 | 413 | It's nice, but we can do better 414 | 415 | 1. Viewer can't tell what the frames represent 416 | 2. Y axis needs labeling, bars need clear labels 417 | 3. It's moving abruptly between frames 418 | 419 |
420 | 421 | ## Add Dynamic Labels 422 | 423 | Solving Problem 1 and 2: Added a descriptive title/label that indicate the year of the frame, label bars 424 | 425 | ```{r} 426 | 427 | animp <- baseplot3 + 428 | ### 429 | geom_text(aes(y = X_affected, 430 | label = as.character(X_affected)), 431 | color = "black", vjust = 0.2, hjust = -.5)+ 432 | labs(title = "Refugees Residing in South Africa by Origin, {closest_state}" 433 | , y="Affected Persons")+ 434 | ### 435 | transition_states(X_date_year) 436 | 437 | ``` 438 | 439 | ## Dynamic Labels - Render 440 | 441 | ```{r, fig.width = 10, fig.height=6, echo = FALSE, cache = TRUE} 442 | 443 | animate(animp, fps = 10, duration = 20) 444 | 445 | ``` 446 | 447 | ## Transition Options: Exit/Enter 448 | 449 | Solving Problem 3: how do we want the animation elements to move? 450 | 451 | Option: shrink and grow on exit and enter 452 | 453 | ```{r} 454 | 455 | animp <- baseplot3 + 456 | geom_text(aes(y = X_affected, 457 | label = as.character(X_affected)), 458 | color = "black", vjust = 0.2, hjust = -.5)+ 459 | labs(title = "Refugees Residing in South Africa by Origin, {closest_state}" 460 | , y="Affected Persons")+ 461 | transition_states(X_date_year)+ 462 | ### 463 | enter_grow() + 464 | exit_shrink() 465 | ### 466 | 467 | ``` 468 | 469 | 470 | ## Exit/Enter - Render 471 | 472 | It's interesting, but probably not serving the project objectives 473 | 474 | ```{r, fig.width = 10, fig.height=6, echo = FALSE, cache = TRUE} 475 | 476 | animate(animp, fps = 10, duration = 20) 477 | 478 | ``` 479 | 480 | 481 | ## Transition Options: Easing 482 | 483 | Solving Problem 3: how do we want the animation elements to move? 484 | 485 | Option: Ease between positions (moving on page, not exiting or entering) 486 | 487 | ```{r} 488 | 489 | animp <- baseplot3 + 490 | geom_text(aes(y = X_affected, 491 | label = as.character(X_affected)), 492 | color = "black", vjust = 0.2, hjust = -.5)+ 493 | labs(title = "Refugees Residing in South Africa by Origin, {closest_state}" 494 | , y="Affected Persons")+ 495 | transition_states(X_date_year)+ 496 | ### 497 | ease_aes('quartic-in-out') 498 | ### 499 | 500 | ``` 501 | 502 | 503 | ## Easing Transitions - Render 504 | 505 | Makes the transition speed change as it moves (functions may be cubic, quartic, etc) 506 | 507 | ```{r, fig.width = 10, fig.height=6, echo = FALSE, cache = TRUE} 508 | 509 | animate(animp, fps = 10, duration = 20) 510 | 511 | ``` 512 | 513 | ## Transition Options: More Energetic 514 | 515 | Solving Problem 3: how do we want the animation elements to move? 516 | 517 | Option: For fun, let's try "back" to see a springier approach 518 | 519 | ```{r} 520 | 521 | animp <- baseplot3 + 522 | geom_text(aes(y = X_affected, 523 | label = as.character(X_affected)), 524 | color = "black", vjust = 0.2, hjust = -.5)+ 525 | labs(title = "Refugees Residing in South Africa by Origin, {closest_state}" 526 | , y="Affected Persons")+ 527 | transition_states(X_date_year)+ 528 | ### 529 | ease_aes('back-in-out') 530 | ### 531 | ``` 532 | 533 | 534 | ## Bouncy Transitions - Render 535 | 536 | Feels a little cartoony- interesting, but again perhaps not what we need 537 | 538 | ```{r, fig.width = 10, fig.height=6, echo = FALSE, cache = TRUE} 539 | 540 | animate(animp, fps = 10, duration = 20) 541 | 542 | ``` 543 | 544 | ## Transition Options: Timing 545 | 546 | Solving Problem 3: how do we want the animation elements to move? 547 | 548 | In addition to entry, exit, and transition easing: 549 | 550 | - Set pace for the states/transitions 551 | - Ensure no smoothing between the end and restarting 552 | 553 | ```{r} 554 | 555 | animp <- baseplot3 + 556 | geom_text(aes(y = X_affected, 557 | label = as.character(X_affected)), 558 | color = "black", vjust = 0.2, hjust = -.5)+ 559 | labs(title = "Refugees Residing in South Africa by Origin, {closest_state}" 560 | , y="Affected Persons")+ 561 | ### 562 | transition_states(X_date_year,transition_length = 5, 563 | state_length = c(rep(.25, 21), 20), wrap = FALSE)+ 564 | ### 565 | ease_aes('linear')+ 566 | enter_fade() + 567 | exit_fade() 568 | 569 | ``` 570 | 571 | 572 | ## Set Timings - Render 573 | 574 | Slower pace feels smoother, and doesn't insinuate that the last frame and the first flow into each other 575 | 576 | ```{r, fig.width = 10, fig.height=6, echo = FALSE, cache = TRUE} 577 | 578 | animate(animp, fps = 10, duration = 20) 579 | 580 | ``` 581 | 582 | ## Transition States - What Does It Do? {.smaller} 583 | 584 | ```{r, eval=FALSE} 585 | transition_states( 586 | X_date_year, 587 | transition_length = 5, 588 | state_length = c(rep(.25, 21), 20), 589 | wrap = FALSE)+ 590 | 591 | ``` 592 | 593 | Assign the state unit - here we use the year. 594 | 595 | **Transition length** 596 | 597 | - period of time we use for change from state to state 598 | - slow it down if you want a smooth looking animation 599 | 600 | **State length** 601 | 602 | - period of time where the state stays static 603 | - here I am making the very last state stay static longer 604 | 605 | **Wrap** determines whether to apply transition smoothing between the end and restarting 606 | Experiment with these settings to get the look you want! 607 | 608 | 609 | ## Render the Final Animation 610 | 611 | ```{r, fig.width = 10, fig.height=6, eval=TRUE, cache = TRUE} 612 | animate(animp, fps = 30, duration = 20, width = 800, height = 450) 613 | ``` 614 | 615 |
616 | 617 | Shorter duration: faster animation 618 | More FPS: smoother animation, but bigger file 619 | 620 | The Math: 621 | 20 second animation 622 | 10 frames per second 623 | 200 frame animation total 624 | 625 | Relative values: 626 | Static state = .25 627 | Transition = 5 628 | 629 | 22 years = 22 static states 630 | 22 transitions, not including start and return to start (no transitions there) 631 | 632 | 22 x .25 = 5.5 633 | 22 x 5 = 110 634 | 635 | 200/115.5 = 1.73 frames per state-unit 636 | 637 | .43 frames per static state = .043 sec per static state 638 | 8.65 frames per transition = .865 sec per transition 639 | 640 | 641 |
642 | 643 | ## Save the Animation 644 | 645 | ```{r, eval=FALSE} 646 | anim_save(filename = "final_race_plot2.gif") 647 | ``` 648 | 649 | ## Lessons to Take Away 650 | 651 | ### **1. Do you need animation?** 652 | 653 | Prioritize the transmission of information **effectively** 654 | Make your plot serve the audience, don't be fancy if it's not helpful 655 | 656 | ### **2. Make your animation awesome** 657 | 658 | Think carefully about transitions and speed 659 | 660 | - Figure out the in/out transitions that make sense and are not misleading/distracting 661 | - Give the eye enough time to understand each state 662 | 663 | Get feedback and test your animation on naive viewers 664 | 665 |
666 | 667 |
668 | 669 | 670 | ## Further Links/Reference 671 | 672 | https://gganimate.com/ 673 | 674 | https://ggplot2.tidyverse.org/ 675 | 676 | https://ggforce.data-imaginist.com/ 677 | 678 | https://stackoverflow.com/questions/53162821/animated-sorted-bar-chart-with-bars-overtaking-each-other/53163549 (Hat tip to Jon Spring for this awesome starting point for this kind of thing!) 679 | 680 | ### Even More Examples 681 | 682 | - https://twitter.com/WeAreRLadies/status/1123209959020220419 683 | 684 | Similar project in D3: https://observablehq.com/@johnburnmurdoch/bar-chart-race-the-most-populous-cities-in-the-world 685 | 686 | # Thank you! | [www.stephaniekirmer.com](http://www.stephaniekirmer.com) | @[data_stephanie](http://www.twitter.com/data_stephanie) -------------------------------------------------------------------------------- /ioslides_deck_dc.Rmd: -------------------------------------------------------------------------------- 1 | --- 2 | title: "So You're Thinking About Animating a Plot in R" 3 | subtitle: "DC R 2019" 4 | author: "Stephanie Kirmer
[www.stephaniekirmer.com](http://www.stephaniekirmer.com)
@[data_stephanie](http://www.twitter.com/data_stephanie)" 5 | date: "November 8, 2019" 6 | output: 7 | ioslides_presentation: 8 | widescreen: true 9 | --- 10 | 11 | ```{r, include = FALSE} 12 | library(gapminder) 13 | library(ggplot2) 14 | library(gganimate) 15 | 16 | ``` 17 | 18 | # Follow Along! | https://github.com/skirmer/animating_dataviz 19 | 20 |
21 | Introductions, get the about-me out of the way and give a quick overview 22 | 23 |
24 | 25 | 26 | ## Should you animate that plot? 27 | 28 | ### **Bad Reasons** 29 | 30 | - It's neat 31 | - I want to show off 32 | - One of my dimensions is time 33 | 34 | ### **Good Reasons** 35 | 36 | - I have four or more meaningful data dimensions 37 | - I want to display many levels of a single dimension 38 | 39 | Also: If you need to see all the data points at the same time, don't use animation 40 | 41 |
42 | Balance between encouragement and caution 43 | 44 | Time does not necessarily need to be represented in actual temporality 45 | Talk about what Meaningful Data Dimensions means 46 | Talk about levels of dimension as factor 47 | 48 |
49 | 50 | ## Use Case Ideas 51 | 52 |
53 | 54 | ```{r, echo = FALSE, cache=TRUE} 55 | 56 | samplep <- ggplot(gapminder, aes(gdpPercap, lifeExp, size = pop, colour = country)) + 57 | geom_point(alpha = 0.7, show.legend = FALSE) + 58 | scale_colour_manual(values = country_colors) + 59 | scale_size(range = c(2, 12)) + 60 | scale_x_log10() + 61 | facet_wrap(~continent, ncol = 2) + 62 | labs(title = 'Year: {frame_time}', x = 'GDP per capita', y = 'life expectancy') + 63 | transition_time(year) + 64 | ease_aes('linear') 65 | 66 | animate(samplep, width = 450) 67 | ``` 68 | 69 |
70 | 71 | Thomas Lin Pedersen's example from https://gganimate.com - (@[thomasp85](https://twitter.com/thomasp85)) 72 | 73 | - Data in meaningful groups changing over long periods of time 74 | - What does this plot actually tell the viewer? 75 | 76 |
77 | 78 |
79 | TLP is the creator of gganimate- encourage people to check his stuff out 80 | Discuss this specific plot- what can you learn from it and what is it not good for? 81 | 82 | - trends? y/n 83 | - comparisons across continents? y/n 84 | - comparisons within continents across countries? y/n 85 | 86 |
87 | 88 | ## More Good Examples {.smaller} 89 |
90 | 91 | ### Multiple animations 92 | - Mikey Harper: https://mikeyharper.uk/animated-plots-with-r/ 93 | 94 | ### GIS 95 | - Daniela Vasquez: https://d4tagirl.com/2017/05/how-to-plot-animated-maps-with-gganimate 96 | 97 | ### Forecasting 98 | - Hao Ye: https://haoye.us/post/2018-09-03-gganimate/ 99 | - Troy @ Peak Maximum [https://peakmaximum.com/](https://peakmaximum.com/2018/12/22/visualizing-prophet-with-gganimate/) 100 | 101 |
102 | 103 | ### Shadowing 104 | - Len Kiefer: https://twitter.com/lenkiefer/status/1102274364995719169 105 | 106 | ### Model Performance 107 | - Dariya Sydykova: [https://github.com/dariyasydykova](https://github.com/dariyasydykova/open_projects/tree/master/ROC_animation) 108 | 109 | ### Groups Over Time with Reveal 110 | - Jovan Lekovic: [https://constantlyplotting.com/](https://constantlyplotting.com/snapshots-young-people-arent-watching-much-tv/) 111 | 112 |
113 | 114 |
115 | Show these examples in realtime - tell people to google for more to get ideas 116 | It can be hard to imagine your data in an animation, so looking at examples of how other people do it can be v helpful 117 |
118 | 119 | ## Think About Design 120 | 121 | - What information do you want the audience to take away? 122 | 123 | - Movement and speed lead the viewer to interpretation of the data - this can be good or bad 124 | 125 | - Each static frame should be informative alone as well 126 | 127 | (Be open to the idea that you might not need animation to be most effective) 128 | 129 |
130 | Thinking about your own data and planning ahead is huge 131 | 132 |
133 | 134 | 135 | # The Tools 136 | 137 | ## Key Packages to Get 138 | ```{r} 139 | library(ggplot2) # make plots 140 | library(gganimate) # animate the plots 141 | library(gifski) # render gifs 142 | ``` 143 | 144 | Optional, maybe interesting packages 145 | ```{r} 146 | library(transformr) # additional smooth transformations 147 | library(patchwork) # arrange multiple plots in a single layout 148 | library(ggforce) # extended options for ggplot functionality 149 | ``` 150 | 151 |
152 | To make the example here work, you need the first three for sure- some different transformation options are made available with the fourth 153 | 154 |
155 | 156 | ## Key Concepts 157 | 158 | ### **Frame** 159 | - Animations are a series of single images (frames) strung together (think of "frames per second") 160 | 161 | ### **State** 162 | - The current grouping variable being shown. It may be one frame, or a single state representation can stay visible for multiple frames 163 | 164 | ### **Transition** 165 | - How the visual rendering moves from state to state 166 | 167 | ### **Enter/Exit** 168 | - How datapoints with no predecessor or follower are handled 169 | 170 |
171 | These are really concepts in the space of animation generally 172 | Think about old timey cartooning, or flipbooks- one cel at a time, moving past you quick enough that it looks like movement 173 | What we are doing here is not dissimilar. 174 | Frame: a measure of time. State: a property of your data. 175 | Option: look back at the examples from earlier and talk about what the states are? 176 |
177 | 178 | # Building the Viz 179 | 180 | ## Example Project 181 | 182 | Using data on displaced persons living in South Africa, show patterns and trends in refugee movement over twenty-plus years. 183 | 184 | 1. Where do most refugees come from? 185 | 186 | - These may be places with high instability or political turmoil at a given time 187 | 2. Over time, are the most common countries of origin about the same? 188 | 3. Is the number of refugees coming from the most common countries of origin stable? 189 | 190 | Data Source: UNHCR via data.world: [UNHCR's populations of concern residing in South Africa](https://data.world/unhcr/244d728f-06e6-4c25-8eed-69e8fe3bffe0) 191 | 192 |
193 | Example for today's purposes - no special reason 194 |
195 | 196 | ## Initial Data 197 | 198 | Grab dataset of displaced persons living in South Africa 199 | ```{r, echo = FALSE} 200 | dtset <- read.csv("data/unhcr-time-series-residing-zaf-csv-1.csv", skip = 1) 201 | names(dtset) <- gsub("\\.", "_", names(dtset)) 202 | 203 | dtset <- dplyr::filter(dtset, X_date_year > 1995) 204 | 205 | knitr::kable(head(dtset, 4)) 206 | ``` 207 | 208 | 209 | ## Mutate Data 210 | 211 | Select the top 10 countries of origin for each year, apply some filters. 212 | 213 | ```{r, message=FALSE, error=FALSE, warning=FALSE, echo=FALSE} 214 | library(magrittr) 215 | library(dplyr) 216 | 217 | plotDT <- dtset %>% 218 | filter(X_country_origin != "Various/Unknown") %>% 219 | filter(X_population_type == "Refugees (incl. refugee-like situations)") %>% 220 | group_by(X_date_year) %>% 221 | mutate(rank = rank(-X_affected, ties.method = "first") * 1) %>% 222 | ungroup() %>% 223 | filter(rank <= 10) %>% 224 | data.frame() 225 | 226 | plotDT$X_country_origin <- ifelse(plotDT$X_country_origin == "Serbia and Kosovo (S/RES/1244 (1999))", "Serbia/Kosovo", as.character(plotDT$X_country_origin)) 227 | 228 | knitr::kable(head(plotDT, 4)) 229 | ``` 230 | 231 | ## Grouped Bar Plot - Code 232 | 233 | Group by country, bar height is affected persons 234 | 235 | ```{r} 236 | baseplot1 <- ggplot( 237 | plotDT, 238 | aes(X_date_year, 239 | group = X_country_origin, 240 | fill = as.factor(X_country_origin), 241 | color = as.factor(X_country_origin))) + 242 | theme_bw() + 243 | theme(legend.position = "bottom") + 244 | geom_bar(aes(y = X_affected), stat = "identity", position = "dodge") 245 | 246 | ``` 247 | 248 | ## Grouped Bar Plot - Rendered 249 | 250 | Ew. This is not effective. 251 | 252 | 253 | ```{r, echo=FALSE, fig.width = 10} 254 | baseplot1 255 | ``` 256 | 257 | ## Can Faceting Solve? 258 | 259 | No. 260 | 261 | ```{r, echo=FALSE, fig.width = 10} 262 | baseplot1+facet_grid(X_country_origin~.) 263 | ``` 264 | 265 | ## Can Faceting Solve? 266 | 267 | Nooooo. 268 | 269 | ```{r, echo=FALSE, fig.width = 10} 270 | baseplot1+facet_wrap(X_country_origin~.) 271 | ``` 272 | 273 | 274 | ## What if we try to make a race plot instead? 275 | 276 | ![Let's make this!](final_race_plot2.gif) 277 | 278 | 279 | ## Reformat the Plot 280 | 281 | From this... 282 | 283 | ```{r} 284 | baseplot1 <- ggplot(plotDT, 285 | aes(X_date_year, 286 | group = X_country_origin, 287 | fill = as.factor(X_country_origin), 288 | color = as.factor(X_country_origin))) + 289 | theme_bw() + 290 | theme(legend.position = "bottom") + 291 | geom_bar(aes(y = X_affected), stat = "identity", position = "dodge") 292 | 293 | ``` 294 | 295 | ## Reformat the Plot 296 | 297 | To this! 298 | 299 | ```{r} 300 | baseplot3 <- ggplot(plotDT, 301 | ### 302 | aes(x=rank, 303 | ### 304 | group = X_country_origin, 305 | fill = as.factor(X_country_origin), 306 | color = as.factor(X_country_origin)))+ 307 | theme_bw()+ 308 | ### 309 | theme(legend.position = "none", # Give the plot enough space to have labels 310 | axis.ticks.y = element_blank(), 311 | axis.text.y = element_blank(), 312 | axis.title.y = element_blank(), 313 | plot.margin = margin(1,1,1,5, "cm"))+ 314 | geom_text(aes(y = 0, label = paste(X_country_origin, " ")), vjust = 0.2, hjust = 1) + 315 | coord_flip(clip = "off", expand = FALSE, ylim = c(0, 50000)) + # Flip the plot 316 | ### 317 | geom_bar(aes(y = X_affected), stat = "identity", position = "identity")+ 318 | ### 319 | scale_y_continuous(labels = scales::comma) + 320 | scale_x_reverse() 321 | ### 322 | 323 | ``` 324 | 325 | 326 | ## Render 327 | 328 | Now we have the different "frames" all layered on top of each other. 329 | ```{r, echo = FALSE, fig.width = 10} 330 | baseplot3 331 | ``` 332 | 333 | # Develop the Animation 334 | 335 | ## Basic Version 336 | 337 | Literally add one more line of code to your ggplot object. 338 | 339 | ```{r} 340 | 341 | animp <- baseplot3 + 342 | ### 343 | transition_states(X_date_year) 344 | ### 345 | ``` 346 | 347 | ## It's Alive! 348 | 349 |
350 | ```{r, fig.width = 8, fig.height=4, echo = FALSE, cache = TRUE} 351 | animate(animp, fps = 10, duration = 20, height = 400) 352 | ``` 353 | 354 | It's nice, but we can do better 355 | 356 | 1. Viewer can't tell what the frames represent 357 | 2. Y axis needs labeling, bars need clear labels 358 | 3. It's moving abruptly between frames 359 | 360 |
361 | 362 | ## Improvements 363 | 364 | Solving Problem 1 and 2: Added a descriptive title/label that indicate the year of the frame, label bars 365 | 366 | ```{r} 367 | 368 | animp <- baseplot3 + 369 | ### 370 | geom_text(aes(y = X_affected, 371 | label = as.character(X_affected)), 372 | color = "black", vjust = 0.2, hjust = -.5)+ 373 | labs(title = "Refugees Residing in South Africa by Origin, {closest_state}" 374 | , y="Affected Persons")+ 375 | ### 376 | transition_states(X_date_year) 377 | 378 | ``` 379 | 380 | ## Dynamic Labels 381 | 382 | ```{r, fig.width = 10, fig.height=6, echo = FALSE, cache = TRUE} 383 | 384 | animate(animp, fps = 10, duration = 20) 385 | 386 | ``` 387 | 388 | ## How Things Move 389 | 390 | Solving Problem 3: how do we want the animation elements to move? 391 | 392 | Choose exit and enter styles: grow and shrink? 393 | 394 | ```{r} 395 | 396 | animp <- baseplot3 + 397 | geom_text(aes(y = X_affected, 398 | label = as.character(X_affected)), 399 | color = "black", vjust = 0.2, hjust = -.5)+ 400 | labs(title = "Refugees Residing in South Africa by Origin, {closest_state}" 401 | , y="Affected Persons")+ 402 | transition_states(X_date_year)+ 403 | ### 404 | enter_grow() + 405 | exit_shrink() 406 | ### 407 | 408 | ``` 409 | 410 | 411 | ## Exit/Enter 412 | 413 | It's interesting, but probably not serving the project objectives 414 | 415 | ```{r, fig.width = 10, fig.height=6, echo = FALSE, cache = TRUE} 416 | 417 | animate(animp, fps = 10, duration = 20) 418 | 419 | ``` 420 | 421 | 422 | ## How More Things Move 423 | 424 | Choose easing: 425 | 426 | * movement between positions (moving on page, not exiting or entering) 427 | * transition speed can change as it moves (functions may be cubic, quartic, etc) 428 | 429 | Here we see `quartic-in-out` 430 | 431 | ```{r} 432 | 433 | animp <- baseplot3 + 434 | geom_text(aes(y = X_affected, 435 | label = as.character(X_affected)), 436 | color = "black", vjust = 0.2, hjust = -.5)+ 437 | labs(title = "Refugees Residing in South Africa by Origin, {closest_state}" 438 | , y="Affected Persons")+ 439 | transition_states(X_date_year)+ 440 | ### 441 | ease_aes('quartic-in-out') 442 | ### 443 | 444 | ``` 445 | 446 | 447 | ## Quartic Easing 448 | 449 | ```{r, fig.width = 10, fig.height=6, echo = FALSE, cache = TRUE} 450 | 451 | animate(animp, fps = 10, duration = 20) 452 | 453 | ``` 454 | 455 | ## Bouncy Easing 456 | 457 | Easing `back-in-out`: Feels a little cartoony- interesting, but again perhaps not what we need 458 | 459 | ```{r, fig.width = 10, fig.height=6, echo = FALSE, cache = TRUE} 460 | 461 | animp <- baseplot3 + 462 | geom_text(aes(y = X_affected, 463 | label = as.character(X_affected)), 464 | color = "black", vjust = 0.2, hjust = -.5)+ 465 | labs(title = "Refugees Residing in South Africa by Origin, {closest_state}" 466 | , y="Affected Persons")+ 467 | transition_states(X_date_year)+ 468 | ### 469 | ease_aes('back-in-out') 470 | ### 471 | 472 | animate(animp, fps = 10, duration = 20) 473 | 474 | ``` 475 | 476 | ## How Fast Things Move (Timing) 477 | 478 | In addition to entry, exit, and transition easing: 479 | 480 | - Set pace for the states/transitions 481 | - Ensure no smoothing between the end and restarting 482 | 483 | ```{r} 484 | 485 | animp <- baseplot3 + 486 | geom_text(aes(y = X_affected, 487 | label = as.character(X_affected)), 488 | color = "black", vjust = 0.2, hjust = -.5)+ 489 | labs(title = "Refugees Residing in South Africa by Origin, {closest_state}" 490 | , y="Affected Persons")+ 491 | ### 492 | transition_states(X_date_year,transition_length = 5, 493 | state_length = c(rep(.25, 21), 20), wrap = FALSE)+ 494 | ### 495 | ease_aes('linear')+ 496 | enter_fade() + 497 | exit_fade() 498 | 499 | ``` 500 | 501 | 502 | ## Set Timings 503 | 504 | Slower pace feels smoother, and doesn't insinuate that the last frame and the first flow into each other 505 | 506 | ```{r, fig.width = 10, fig.height=6, echo = FALSE, cache = TRUE} 507 | 508 | animate(animp, fps = 10, duration = 20) 509 | 510 | ``` 511 | 512 | ## Transition States Drilldown 513 | 514 | 515 | 516 | 517 |
518 | 519 | ```{r, eval=FALSE} 520 | transition_states( 521 | states = X_date_year, 522 | transition_length = 5, 523 | state_length = c(rep(.25, 21), 20), 524 | wrap = FALSE)+ 525 | 526 | ``` 527 | 528 | 529 | **States**: Assign the state unit - here we use the year. 530 | 531 | **Transition length** 532 | 533 | - period of time we use for change from state to state 534 | - slow it down if you want a smooth looking animation 535 | 536 | **State length** 537 | 538 | - period of time where the state stays static 539 | - here I am making the very last state stay static longer 540 | 541 | **Wrap**: determine whether to apply transition smoothing between the end and restarting 542 |
543 | Experiment with these settings to get the look you want! 544 | 545 | 546 | ## Render the Final Animation 547 | 548 | ```{r, fig.width = 10, fig.height=6, eval=TRUE, cache = TRUE} 549 | animate(animp, fps = 10, width = 800, height = 450) 550 | ``` 551 | 552 |
553 | 554 | Shorter duration: faster animation 555 | More FPS: smoother animation, but bigger file 556 | 557 | The Math: 558 | 20 second animation 559 | 10 frames per second 560 | 200 frame animation total 561 | 562 | Relative values: 563 | Static state = .25 564 | Transition = 5 565 | 566 | 22 years = 22 static states 567 | 22 transitions, not including start and return to start (no transitions there) 568 | 569 | 22 x .25 = 5.5 570 | 22 x 5 = 110 571 | 572 | 200/115.5 = 1.73 frames per state-unit 573 | 574 | .43 frames per static state = .043 sec per static state 575 | 8.65 frames per transition = .865 sec per transition 576 | 577 | 578 |
579 | 580 | ## Save the Animation 581 | 582 | ```{r, eval=FALSE} 583 | anim_save(filename = "final_race_plot2.gif") 584 | ``` 585 | 586 | ## Lessons to Take Away 587 | 588 | ### **1. Do you need animation?** 589 | 590 | Prioritize the transmission of information **effectively** 591 | Make your plot serve the audience, don't be fancy if it's not helpful 592 | 593 | ### **2. Make your animation awesome** 594 | 595 | Think carefully about transitions and speed 596 | 597 | - Figure out the in/out transitions that make sense and are not misleading/distracting 598 | - Give the eye enough time to understand each state 599 | 600 | Get feedback and test your animation on naive viewers 601 | 602 |
603 | 604 |
605 | 606 | 607 | ## Further Links/Reference 608 | 609 | https://gganimate.com/ 610 | 611 | https://ggplot2.tidyverse.org/ 612 | 613 | https://ggforce.data-imaginist.com/ 614 | 615 | https://stackoverflow.com/questions/53162821/animated-sorted-bar-chart-with-bars-overtaking-each-other/53163549 (Hat tip to Jon Spring for this awesome starting point for this kind of thing!) 616 | 617 | ### Even More Examples 618 | 619 | - https://twitter.com/WeAreRLadies/status/1123209959020220419 620 | 621 | Similar project in D3: https://observablehq.com/@johnburnmurdoch/bar-chart-race-the-most-populous-cities-in-the-world 622 | 623 | # Thank you! | [www.stephaniekirmer.com](http://www.stephaniekirmer.com) | @[data_stephanie](http://www.twitter.com/data_stephanie) | [www.journera.com](http://www.journera.com) --------------------------------------------------------------------------------