[R-sig-Geo] Global mapping of multiple categories by colour

Andy South southandy at gmail.com
Fri Aug 30 20:04:15 CEST 2013


> > 

Thanks Roger for your comprehensive answer, I've been offline for a couple 
of days.

Sarah, I think you may be very close to your first objective. Try removing 
the quotes around data3, (because data3 is an object not a string) :

malMap <- joinCountryData2Map(dF = data3, joinCode = "ISO3", nameJoinColumn 
= "country")

> > malMap <- joinCountryData2Map(dF = "data3", joinCode = "ISO3",
> > nameJoinColumn = "country")
> >
> > # This will join your malDF data.frame to the country map data
> >
> > mapCountryData(malMap, nameColumnToPlot="hdi", catMethod =
> > "categorical", missingCountryCol = gray(.8))
> >
> > head(data3)
> >
> > country   hdi
> >              0
> >              0
> >              0
> >  ASM     0.827
> >              0
> >              0
> >
> > Firstly I get this error as it won't match the country names up:
> >
> > "Error in joinCountryData2Map(dF = "data3", joinCode = "ISO3",
> > nameJoinColumn = "country") :  your chosen nameJoinColumn :'country'
> > seems not to exist in your data, columns ="

> > Also, is it possible to manually make
> > the small island nations bigger as they will not appear at this scale.

Let's walk before we try running, however that should be possible using 
mapBubbles([some stuff],add=TRUE)
after you've created your initial map.

To get a more rapid response from me & other rworldmap users, & search more 
targeted information you can join the nascent rworldmap google group : 
http://groups.google.com/group/rworldmap
(not much on it yet but it's a start).

Good luck,
Andy


> > I'm sorry this is so long. Any help would be greatly appreciated.
> >
> > Cheers,
> >
> > Sarah
> >
> > _______________________________________________
> > R-sig-Geo mailing list
> > R-sig-Geo <at> r-project.org
> > https://stat.ethz.ch/mailman/listinfo/r-sig-geo
> >
>



More information about the R-sig-Geo mailing list