Hi Jim,
that is exactly what I was looking for. Thanks a lot! I can even
choose how to label the countries e.g. Italy or just IT.
Have a nice day and thank you for helping me again
Claudia
Zitat von Jim Lemon :
Hi Claudia,
You're right, when the map is maximized the coordinates of the obj
Hi Jim,
thanks again for your help! Yes I am using the "rworldmap" package.
identifyCountries() works.
But I am not entirley happy with this solution. You have to click on
all 27 countries and when your position is not perfect you get e.g.
"Vatican" or "Monaco" instead of "Italy" and you have
Hi Claudia,
You're right, when the map is maximized the coordinates of the objects
aren't maintained. I wrote a simple example using boxed.labels instead
of identifyCountries:
mapCountryData(mapRegion="europe", oceanCol="slateblue1",
missingCountryCol="darkgrey", colourPalette=c("palegreen","darkg
Hi Claudia,
It seems that you are using the "rworldmap" package. The simplest
solution to your problem seems to be the "identifyCountries" function.
Just call:
identifyCountries()
instead of "labelCountries" and left click on the countries you want labeled.
Jim
On Sat, Jan 17, 2015 at 3:33 AM,
Hello,
I have problems to label countries in my map.
I use the following code to draw the map:
epimap=joinCountryData2Map(epidata,joinCode="NAME",nameCountryColumn="Country",nameJoinColumn="Country")
mapCountryData(epimap, nameColumnToPlot="EPI.2.0" ,mapRegion="europe",
oceanCol="slateblue1",
5 matches
Mail list logo