[R] Help with map

From: Alberto Monteiro <albmont_at_centroin.com.br>
Date: Fri, 04 May 2007 11:24:15 -0200

I have just learned how to play with map, but something weird (or not) is happening.

Suppose I want to draw a map of two countries (that have disconnected components), like Argentina and Brazil.

If I command:

map("worldHires", c("Argentina", "Brazil"))

It works fine. However, if I want to _colour_ the interior:

map("worldHires", c("Argentina", "Brazil"), c("cyan", "green"), fill=T)

Then the colors will be assigned to the islands (Marajo in Brazil's North and Tierra del Fuego in Argentina's South) and there will be a recycling.

Is there any way to associate one color to each country?

Alberto Monteiro

R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 04 May 2007 - 13:30:51 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 04 May 2007 - 15:31:19 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.