2013-04-02 4 views

Odpowiedz

10

Oto przykład bez 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, ale chcę użyć 'bor = "red"' lub podobne, aby podświetlić wybrane kraje trochę więcej. –

+0

Dziękuję bardzo Simon. Właśnie tego chciałem! Idealny! – Carvalho

Powiązane problemy