相關的圈的大小我希望能夠創建一個世界地圖,在與圖表相關的圖上有圓圈。世界地圖 - 繪圖圈,圈的大小與
這個我試圖使用mapBubbles,但是當繪製圖表時出了點問題。
我的數據文件如下:
ISO3V10 Country No of Documents Lat Lon
ARG Argentina 41 -64 -34
AUS Australia 224 133 -27
CAN Canada 426 -95 60
IRL Ireland 68 -8 53
ITA Italy 583 12.8333 42.8333
NLD Netherlands 327 5.75 52.5
NZL New Zealand 26 174 -41
ESP Spain 325 -4 40
GBR United Kingdom 2849 -2 54
USA United States 3162 -97 38
我寫的代碼如下:
# Thanks to Andrie for the reproducible code and Paolo for the suggested edit
zz <-"ISO3V10 Country No.of.Documents Lat Lon
ARG Argentina 41 -64 -34
AUS Australia 224 133 -27
CAN Canada 426 -95 60
IRL Ireland 68 -8 53
ITA Italy 583 12.8333 42.8333
NLD Netherlands 327 5.75 52.5
NZL 'New Zealand' 26 174 -41
ESP Spain 325 -4 40
GBR 'United Kingdom' 2849 -2 54
USA 'United States' 3162 -97 38
"
dF2 <- read.table(textConnection(zz), header = TRUE)
# dF2 <- read.delim(file="C:\\Users\\js207963\\Documents\\noofpublications_AllUpdated.txt", header = TRUE, sep = "\t")
dF2[]
par(mai=c(0,0,0.2,0),xaxs="i",yaxs="i")
mapBubbles(dF2=getMap(), nameZSize="No.of.Documents", nameZColour="Country",oceanCol="lightblue", landCol="wheat", addLegend=FALSE
所以,問題是你能幫助我解決了代碼,以繪製數據是否正確?
乾杯, 傑斯
這可能是最好的,如果你堅持一個帳戶的計算器。 – BenBarnes
我甚至不知道我有2個帳戶! –