search for: allcounties

Displaying 1 result from an estimated 1 matches for "allcounties".

2012 Jan 25
1
Coloring Canada provinces (package maps?)
...smallest geographicterritorial unit available for formatting in Canada. Provinces? I know that in the US it is the county so that I can color US counties any way I want, for example: ### Example for coloring US counties ### Creating an ARTIFICIAL criterion for coloring US counties: library(maps) allcounties<-data.frame(county=map('county', plot=FALSE)$names) allcounties$group<-c(rep(1:6,513),rep(1,4))[order(c(rep(1:6,513),rep(1,4)))] ### My colors: mycolors <- rainbow(6) map('county',fill=TRUE,col=mycolors[allcounties$group],resolution=0,lty=0,bg = "transparent") map...