[Rd] Choropleths maps of the USA states (PR#9111)

From: <mlcarvalho_at_fc.ul.pt>
Date: Mon 31 Jul 2006 - 13:48:15 GMT


Dear Colegues:

I have tried to reach Ray Brownrigg, Ray.Brownrigg@mcs.vuw.ac.nz but my mails have turned back with the following comment did not reach the following recipient(s): Brownrigg@mcs.vuw.ac.nz on Mon, 31 Jul 2006 12:52:39 +0100

There is no such account in the address

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

I have a problem with the choropleths maps of the USA states=20

 In fact, when I use the following code

#####################################################

palette(gray(seq(0,.9,len=3D10)))

 ordena.estados<-c("ALABAMA","ARIZONA","ARKANSAS","CALIFORNIA","COLORADO",
"CONNECTICUT","DELAWARE","FLORIDA","GEORGIA","IDAHO","ILLINOIS","INDIANA","=
IOWA",
"KANSAS",
"KENTUCKY","LOUISIANA","MAINE","MARYLAND","MASSACHUSETTS","MICHIGAN","MINNE=
SOTA","MISSISSIPI",
 "MISSOURI", "MONTANA","NEBRASKA","NEVADA","NEW HAMPSHIRE","NEW JERSEY",
"NEW MEXICO","NEW YORK",
"NORTH CAROLINA","NORTH DAKOTA","OHIO","OKLAHOMA","OREGON","PENNSYLVANIA","=
RHODE ISLAND",
"SOUTH CAROLINA",
"SOUTH DAKOTA","TENNESSEE","TEXAS","UTAH","VERMONT","VIRGINIA","WASHINGTON",
"WEST VIRGINIA","WISCONSIN","WYOMING")
W<-c(1,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1= ,1,1,1,1,1,1,1,1,1,1,1,1,1)

mapa.sat<-map('state', region =3D ordena.estados,fill=3DT,col=3DW)=20=20

#####################################################

That should paint all the states with the same colour except "ARIZONA" , =  I get the "UTAH" state also coloured as "ARIZONA".

The same thing happens with some other states, I get two states coloured in= stead of one.

Is there any problem with the way I have made the ranking of states in "ord= ena.estados"?

=20

Thank you for any help.

Sincerely

Luc=EDlia Carvalho

        [[alternative HTML version deleted]]



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon Jul 31 23:52:16 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 01 Aug 2006 - 06:28:01 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.