1

我正在使用 rworldmap,但我的地图在图例中缺少一个标签

mapDevice() #create world map shaped window
mapParams <- mapCountryData(sPDF
                        ,nameColumnToPlot="count"
                        ,addLegend=FALSE
                        ,catMethod = catMethod
                        ,colourPalette=colourPalette
                        ,mapTitle = "Count of all events by country"
                        ,oceanCol='lightblue'
                        ,missingCountryCol='white')
#adding legend
do.call(addMapLegend
    ,c(mapParams
       ,legendLabels="all"
       ,horizontal=TRUE
       ,legendWidth=0.5
       ,legendIntervals="data"
       ,legendMar = 11))

在此处输入图像描述

谢谢你的任何建议

4

0 回答 0