Hi, R told me to send an error report to you. I've included the warning message along with the code that preceded it immediately below. I've also appended the data set to the end of this email.
> life<-read.table(file.choose(), header=TRUE, sep="\t") > attach(life) > par(mfrow=c(2,2)) > plot(ln.GDP.,Life.Expect) > x.GDP=c(ln.GDP.[Country=="Botswana"],ln.GDP.[Country=="Namibia"],ln.GDP.[Country=="South Africa"]) > y.GDP=c(Life.Expect[Country=="Botswana"], Life.Expect[Country=="Namibia"],Life.Expect[Country=="South Africa"]) > points(x.GDP,y.GDP,pch=19) > text(x.GDP,y.GDP,labels=c("Botswana","Namibia","SA")) > plot(X..Urban, Life.Expect) > plot(X..Agri, Life.Expect) > x.Agri=c(X..Agri[Country=="Botswana"],X..Agri[Country=="South Africa"], X..Agri[Country=="Namibia"]) > y.Agri=c(Life.Expect[Country=="Botswana"],Life.Expect[Country=="South Africa"],Life.Expect[Country=="Namibia"]) > points(x.Agri,y.Agri,pch=19) > text(x.Agri,y.Agri,labels=c("Botswana","SA","Namibia")) > plot(X..Agri,ln.GDP.) > points(x.Agri,c(Life.Expect[Country=="Botswana"],Life.Expect[Country=="South Africa"], Life.Expect[Country=="Namibia"]),pch=19) > c(Life.Expect[Country=="Botswana"],Life.Expect[Country=="South Africa"], Life.Expect[Country=="Namibia"]) [1] 36.3 48.4 48.3 > x.Agri [1] 12.3 30.0 47.0 > points(c(36.3, 48.4, 48.3),c(12.3 30.0 47.0),pch=19) Error: syntax error > points(c(36.3, 48.4, 48.3),c(12.3, 30.0, 47.0),pch=19) 2009-04-28 18:25:42.943 R[29101] *** Assertion failure in -[RDeviceView lockFocus], AppKit.subproj/NSView.m:3248 2009-04-28 18:25:42.943 R[29101] *** REngine.runREPL: caught ObjC exception in the main loop! *** Please report the following error on r-sig-...@r-project.org along with the full description of how to reproduce it: *** reason: lockFocus sent to a view whose window is deferred and does not yet have a corresponding platform window *** name: NSInternalInconsistencyException, info: (null) *** Version: R 2.5.1 (42083) R.app R 2.5.1 GUI 1.20 (4535)/i386 Consider saving your work soon in case this problem leads to a full crash. Cheers, Agnieszka Rec Agnieszka Rec Center for Women in Mathematics Smith College 2009 ------------------------------------------------------------------------------------------------------ Data set: Country ln(GDP) Life Expect % Urban % Agri Albania 8.43032725839458 73.8 44 50 Algeria 8.71719093322313 71.1 59 25 Angola 7.7596141506969 40.8 36 85 Antigua and Barbuda 9.2393164802127 73.9 37.76 11 Argentina 9.40145647645163 74.5 89 1.3 Armenia 8.20821938349683 71.5 67 45 Australia 10.2966101374459 80.3 92 5 Austria 10.3120810953188 79 68 4 Azerbaijan 8.1934002319521 66.9 52 41 Bahamas 9.75027809628562 69.7 89.42 5 Bahrain 9.76875543933509 74.3 89.99 1 Bangladesh 7.47873482556787 62.8 27 63 Barbados 9.6626890659832 75 51.75 10 Belgium 10.2518530686037 78.9 98 2 Belize 8.84649693855884 71.9 48.38 27 Bhutan 7.58528107863913 62.9 8.54 93 Botswana 9.07268620667739 36.3 50 12.3 Brazil 8.96059613886479 70.5 83 23 Brunei Darussalam 9.8631862557626 76.4 76.12 10 Bulgaria 8.95299349932047 72.2 68 26 Burkina Faso 7.06817200038804 47.5 18 90 Cambodia 7.63916117165917 56.2 19 80 Cameroon 7.65822752616135 45.8 51 70 Canada 10.3312684671277 80 79 3 Chad 7.09837563859079 43.6 25 80 Chile 9.23737171102721 77.9 87 14 China 8.51779301148821 71.6 39 50 Colombia 8.81016126829726 72.4 76 30 Comoros 7.44658509915773 63.2 35.05 80 Costa Rica 9.17014318222477 78.2 45 20 CÙte d'Ivoire 7.29709100516042 45.9 59 68 Croatia 9.31289696030128 75 76 16.8 Cuba 8.1605182474775 77.3 75 24 Cyprus 9.84033473753086 78.6 69.21 20.8 Czech Republic 9.70241121925853 75.6 85 5 Denmark 10.356631095961 77.2 67 4 Dominica 8.60300384782935 75.6 72.04 40 Dominican Republic 8.82805453681542 67.2 64 17 Ecuador 8.20001364817543 74.3 43 30 Egypt 8.28147085789517 69.8 64 29 El Salvador 8.4724050086261 70.9 20 30 Eritrea 6.74405918631135 53.8 70 80 Estonia 9.51332968849511 71.3 17 11 Ethiopia 6.56667242980324 47.6 59 80 Fiji 8.67931204089267 67.8 51.7 70 Finland 10.2262592206598 78.5 76 8 France 10.228357022355 79.5 84 4 Gabon 8.76358440945014 54.5 33 60 Gambia 7.52779398772144 55.7 57 75 Georgia 7.85864065562079 70.5 88 40 Germany 10.2312073120194 78.7 37 2.8 Ghana 7.71333788887187 56.8 61 60 Greece 9.90118490347345 78.3 41 20 Grenada 8.98205864280585 65.3 40.72 24 Guatemala 8.33038156934942 67.3 29 50 Guinea 7.64826303090192 53.7 34 80 Guinea-Bissau 6.56667242980324 44.7 38 82 Haiti 7.46278915741245 51.6 56 66 Honduras 7.88795933659994 67.8 65 34 Hong Kong, China (SAR) 10.2101998952697 81.6 100 0 Hungary 9.5876803163585 72.7 28 8 Iceland 10.3495506300728 80.7 92.79 5.1 India 7.96970358327866 63.3 44 60 Indonesia 8.11999382772511 66.8 66 45 Iran, Islamic Rep. of 8.85295088709958 70.4 68 30 Ireland 10.5384228233477 77.7 92 8 Israel 9.90513619278165 79.7 67 2.6 Italy 10.2079898682182 80.1 58 5 Jamaica 8.31971738685061 70.8 79 21 Japan 10.2387805226673 82 79 5 Jordan 8.37101068123816 71.3 56 5 Kazakhstan 8.80552505270952 63.2 36 20 Kenya 6.94408720822953 47.2 61 77.5 Korea, Rep. of 9.79651462653202 77 96 9.5 Kyrgyzstan 7.46794233228585 66.8 21 55 Lao People's Dem. Rep. 7.47250074473756 54.7 60 80 Latvia 9.2369823029226 71.6 91 15 Lesotho 7.84815308619953 36.3 47 86 Libyan Arab Jamahiriya 9.34136863438259 73.6 69 17 Lithuania 9.36751504634818 72.3 60 20 Luxembourg 11.0396846015315 78.5 91.82 1.9 Macedonia, TFYR 8.82379514872053 73.8 31 22 Madagascar 6.69579891705849 55.4 16 78 Malawi 6.40522845803084 39.7 59 86 Malaysia 9.16030943837062 73.2 32 16 Maldives 8.26873183211774 66.6 28.82 22 Mali 6.90173720665657 47.9 62 80 Malta 9.77752742540792 78.4 91.64 5 Mauritania 7.47647238116391 52.7 42 50 Mauritius 9.33140689995563 72.2 75 14 Mexico 9.12347443895452 75.1 42 20 Moldova, Rep. of 7.31986492980897 67.7 57 40 Mongolia 7.52294091807237 64 57 41.8 Morocco 8.29504914043511 69.7 36 50 Mozambique 7.0184017990692 41.9 29 81 Namibia 8.72907355045174 48.3 13 47 Nepal 7.25841215059531 61.6 90 81 Netherlands 10.2877630719617 78.4 86 4 New Zealand 10.0249084077405 79.1 57 10 Nicaragua 8.09009578318096 69.7 22 42 Niger 6.72743172485086 44.4 47 90 Nigeria 6.95654544315157 43.4 76 70 Norway 10.5366193006861 79.4 78 4 Pakistan 7.64826303090192 63 57 42 Panama 8.83258770243455 74.8 18 20.8 Papua New Guinea 7.87054784450771 55.3 58 85 Paraguay 8.45190772471761 71 74 45 Peru 8.56788630573176 70 61 9 Philippines 8.37124213593193 70.4 63 36 Poland 9.33952483035701 74.3 68 16.1 Portugal 9.80510265061473 77.2 76 10 Qatar 9.89565697342094 72.8 92 2.3 Romania 8.89247396834709 71.3 73 31.6 Russian Federation 9.1302143274969 65.3 7 10.3 Rwanda 7.14519613499717 43.9 88 90 Saint Kitts and Nevis 9.42577428022034 70 32.22 3.5 Saint Lucia 8.64979915596426 72.4 30.51 7 Saint Vincent and the Grenadines 8.71980745147795 71.1 58.19 26 Saudi Arabia 9.48993986823461 71.8 50 12 Senegal 7.40731771046942 55.7 52 77 Seychelles 9.23327534325868 72.7 50.02 10 Singapore 10.1056525854651 78.7 58 0 Slovakia 9.51000042118737 74 49 5.8 Slovenia 9.86005799460879 76.4 29 6 Solomon Islands 7.46908388492123 62.3 16.52 75 South Africa 9.24435525056346 48.4 78 30 Spain 10.0164143713913 79.5 24 5.3 Sri Lanka 8.23695004806146 74 39 38 Sudan 7.55485852104068 56.4 27 80 Suriname 8.3187422526924 69.1 75.98 8 Sweden 10.1942897523242 80.2 68 2 Switzerland 10.3271854289054 80.5 53 4.6 Syrian Arab Republic 8.18200013629341 73.3 28 30 Tajikistan 7.00850518208228 63.6 35 67.2 Tanzania, U. Rep. of 6.43133108193348 46 20 80 Thailand 8.93524541502987 70 35 49 Togo 7.43602781635185 54.3 75 65 Tonga 8.85252191733537 72.2 33.51 65 Trinidad and Tobago 9.2841482991209 69.9 67 9.5 Tunisia 8.87640491500694 73.3 67 55 Turkey 8.82055174325303 68.7 45 35.9 Turkmenistan 8.68912765532371 62.4 15 48.2 Uganda 7.2841348061952 47.3 68 82 Ukraine 8.61086566727887 66.1 88 24 United Arab Emirates 10.0177086966262 78 90 7 United Kingdom 10.2090218220192 78.4 78 1.5 United States 10.5337481800409 77.4 93 0.7 Uruguay 9.02159824737931 75.4 37 14 Uzbekistan 7.46393660446893 66.5 88 44 Vanuatu 7.98752447984877 68.6 22.88 65 Venezuela 8.50086053679534 72.9 25 13 Viet Nam 7.82003798945875 70.5 25.76 56.8 Yemen 6.7900972355139 60.6 40 75 Zambia 6.77650699237218 37.5 37 85 Zimbabwe 7.80098207125774 36.9 34.97 66 [[alternative HTML version deleted]]
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-mac