map appearance

57 views
Skip to first unread message

aureli...@enix.org

unread,
Nov 11, 2015, 8:09:19 AM11/11/15
to rworldmap
Good afternoon,

It's me again :)
So I have a map with some pie charts for the countries I have data.
(62 countries)

I would like to add the name of countries but only the one in my data list
I used this command:
labelCountries (dF = sPDF
, nameCountryColumn = "country"
, nameColumnToPlot = "ISO")

The names are added on my map but a lot of NA are added for the countries not in my list.
How can I remove them ?

I also want to color the land of the map with color by subregion by following the United Nations geoscheme classification.
Can I overlay pie chart and map colors ?
How can I do that ?

Thank you for your help
Aurélie


Jean-Baka Domelevo Entfellner

unread,
Nov 11, 2015, 8:35:38 AM11/11/15
to aureli...@enix.org, rworldmap
From the labelCountries manpage: "Given no arguments it will print country names stored in the 'NAME' column of getMap onto an existing map at the centroids of each country polygon, stored in the 'LAT' and 'LON' columns."

Have you tried to use simply "labelCountries()" after having built your mapPies()? For the individual country colouring, I don't know, I guess the landCol argument in mapPies() won't accept to be given multiple values...? Have you tried?

JB

--
You received this message because you are subscribed to the Google Groups "rworldmap" group.
To post to this group, send email to rwor...@googlegroups.com.
Visit this group at http://groups.google.com/group/rworldmap.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rworldmap/b93bf410-59a5-41eb-8d8a-8d53080c8fbd%40googlegroups.com.

aureli...@enix.org

unread,
Nov 12, 2015, 12:24:58 AM11/12/15
to rworldmap, aureli...@enix.org, jean...@sanbi.ac.za
Good morning,

I tried labelCountries()
It but all the countries on the map and it's a lot.
I just want the one I got data for.
Reply all
Reply to author
Forward
0 new messages