2013-04-02 15 views

Antwort

10

ist ein Beispiel ohne rworldmap:

require(mapdata) 

# get the names 
cc <- map('world', names = TRUE, plot = FALSE) 
take <- unlist(sapply(c("ethiopia", "kenya", "uganda"), grep, tolower(cc), value = TRUE)) 

# world 
map() 
# add the selected countries in grey to the plot 
map('world', regions=take, fill=TRUE, col='grey50', add = TRUE) 

enter image description here

+2

+1, aber ich würde ein 'bor = "red" verwenden' oder ähnliches, die ausgewählten Ländern ein wenig mehr hervorzuheben. –

+0

Vielen Dank Simon. Genau was ich wollte! Perfekt! – Carvalho