andysouth / rworldmap

R package for mapping country data
29 stars 7 forks source link

Error in plotpie #18

Open XuexueLiu opened 2 years ago

XuexueLiu commented 2 years ago

Hello I used mapPies to plot command: mapPies(data,nameX="LOG", nameY="LAT", nameZs =c('A','D'),zColours=c("red", "blue"), oceanCol = "lightblue",landCol = "wheat",addSizeLegend=F, addCatLegend=T,mapRegion="eurasia") while get the ERROR Error in ratio radius cos(2 pi seq(cumulatProps[sliceNum], cumulatProps[sliceNum + : non-numeric argument to binary operator and my data is like this: A D Age count LAT LOG 1 200001 1625.5 2 "35,962" "54,038" 200001 1 2891 2 "37,004" "45,459" 100001 1 2853 1 "38,867" "65,800" 100001 1 1267 1 "39,998" "71,073" 570001 930001 1439.6 15 "41,005" "28,952" 100001 1 2672 1 "41,570" "0,950" 1 100001 1143 1 "43,184" "76,780" 100001 200001 1580.333333 3 "45,333" "18,841" Thankyou for your help Best xue