I am mapping U.S. state counties in individual states maps, e.g. A map of Montana, with county lines. How do I fill specific counties with a different color? -- View this message in context: http://r.789695.n4.nabble.com/Coloring-Counties-in-a-State-Map-tp4638218.html Sent from the R help mailing list archive at Nabble.com.
I think that first you need to tell us :what kind of map you are using, what mappig package(s) you are using Why you want the colours and what data set you are drawing on to get these colours (Note it possible provide some sample data (See ?dput as a way to do this And provide any code that you have already developed in trying to do this. John Kane Kingston ON Canada> -----Original Message----- > From: italianoperstranieri at hotmail.it > Sent: Sat, 28 Jul 2012 13:56:18 -0700 (PDT) > To: r-help at r-project.org > Subject: [R] Coloring Counties in a State Map > > I am mapping U.S. state counties in individual states maps, e.g. A map of > Montana, with county lines. > How do I fill specific counties with a different color? > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/Coloring-Counties-in-a-State-Map-tp4638218.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org 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.____________________________________________________________ Receive Notifications of Incoming Messages Easily monitor multiple email accounts & access them with a click. Visit http://www.inbox.com/notifier and check it out!
On 07/29/12 08:56, arcata wrote:> I am mapping U.S. state counties in individual states maps, e.g. A map of > Montana, with county lines. > How do I fill specific counties with a different color? >Do you mean something like: m <- map("county", "Montana") map("county", m$names[c(1, 4)], fill=TRUE, col=c(3, 2), add=TRUE) Ray