I have the following code, having a working world map output
Map <- joinCountryData2Map(mydf, joinCode = "ISO3",
nameJoinColumn = "country")
mapCountryData(Map, nameColumnToPlot="cluster", mapTitle = "", catMethod = "categorical",
missingCountryCol = gray(.8), colourPalette = customColor, addLegend = F, )
However, I want to exclude Antarctica from the map since it takes up space but doesn't add any extra information. Is there a way to do this? I already googled it, but the advice found there is not applicable to me it seems.
The
spobject has arow.namesmethod, since the row names refer to countries, you can easily remove them by subsetting.