From mlcarvalho at fc.ul.pt  Mon Jul 31 15:48:15 2006
From: mlcarvalho at fc.ul.pt (mlcarvalho at fc.ul.pt)
Date: Mon, 31 Jul 2006 15:48:15 +0200 (CEST)
Subject: [Rd] Choropleths maps of the USA states (PR#9111)
Message-ID: <20060731134815.BFF783F03D@slim.kubism.ku.dk>

Dear Colegues:

I have tried to reach Ray Brownrigg,   Ray.Brownrigg at mcs.vuw.ac.nz
but my mails have turned back with the following comment
did not reach the following recipient(s):
Brownrigg at 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]]



[Rd] Choropleths maps of the USA states (PR#9111)
mlcarvalho at fc.ul.pt