Date: Wed, 10 Dec 2008 10:25:28 -0500
Reply-To: msz03@albany.edu
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Mike Zdeb <msz03@ALBANY.EDU>
Subject: Re: annotate a gmap
Content-Type: text/plain;charset=iso-8859-1
hi ... if you are placing 'stuff' on a map based on projected let/long, the coordinate system (xsys, ysys) should be the data system (2, 2)
I see in the PROC PRINT output that xsys, ysys are 1, 5 for some observations ... what's that intended to do ?
ps what US sas/graph map are you using to do the outline
pps there's a REALLY GOOD SAS PRESS BOOK (shameless self promotion) that has some examples like this
http://www.sas.com/apps/pubscat/bookdetails.jsp?pc=57495
--
Mike Zdeb
U@Albany School of Public Health
One University Place
Rensselaer, New York 12144-3456
P/518-402-6479 F/630-604-1475
> I want tp plot an outline of the Unites States, superimposed with
> about 60 red or black small circles (denoting selected zip codes).
> Pairs of circles may be connected by a line segment.
>
> I can draw the map, but gmap complains that 20 observations from the
> annotate data set are out of the visible area. Raising and lowering
> hpos and vpos seem not to help. I have a proc means which suggests
> that all of the x, y values in the annotate data set are within the
> range of the x, y points for the US map.
>
> If I delete the 20 offending observations from the annotate data set,
> I can then see what appears to be (at least) most of the cities, and
> (at least) most of the lines.
>
> If I drop back to only two nodes and one line, I can see them, but I
> also get a spurious red triangle in the lower left corner.
>
> Any ideas what might be going on?
>
> Here are the proce means, and the annotate data set:
>
> projected 09:50 Monday, December 8, 2008
> 444
>
> -------------------------------------------------------- mytype=anno
> line --------------------------------------------------------
>
> The MEANS
> Procedure
>
> Variable Label N
> Mean Std Dev Minimum Maximum
>
> ャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャ
> X Projected Lon in radians 4
> 0.3114335 0.0012498 0.3103511 0.3125159
> Y Projected Lat in radians 4
> 0.1306353 0.0150908 0.1175663 0.1437043
>
> ャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャ
>
>
> ---------------------------------------------------------- mytype=node
> -----------------------------------------------------------
>
> Variable Label N
> Mean Std Dev Minimum Maximum
>
> ャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャ
> X Projected Lon in radians 2
> 0.3114335 0.0015307 0.3103511 0.3125159
> Y Projected Lat in radians 2
> 0.1306353 0.0184824 0.1175663 0.1437043
>
> ャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャ
>
>
> ----------------------------------------------------------
> mytype=state
> ----------------------------------------------------------
>
> Variable Label N
> Mean Std Dev Minimum Maximum
>
> ャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャ
> X Projected Lon in radians 2188
> 0.1360462 0.1816301 -0.3726499 0.3537461
> Y Projected Lat in radians 2188
> 0.0383488 0.1208242 -0.1996721 0.2539744
>
> ャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャャ
>
>
> and
>
> Obs function color style text xsys ysys when
> X Y mytype size serial position
>
> 1 label red special M
> 0.31035 0.14370 node 2.50 1 5
> 2 label red special M
> 0.31252 0.11757 node 2.50 1 5
> 3 move 2 2 a
> 0.31035 0.14370 anno line . .
> 4 draw red 2 2 a
> 0.31252 0.11757 anno line 1.75 .
> 5 label red special J 2 2 a
> 0.31035 0.14370 anno line 1.75 .
> 6 symbol black special J 2 2 a
> 0.31252 0.11757 anno line 1.75 .
>
> Obs DENSITY STATE SEGMENT type zip1 zip2
> n_auditors distance cost y1 x1
>
>
> 1 . . . . . . . . . . .
>
> 2 . . . . . . . . . . .
> 3 . . .
> 99 . . . . . . .
> 4 . . .
> 99 . . . . . . .
> 5 . . .
> 99 . . . . . . .
> 6 . . .
> 99 . . . . . . .
>
> Obs city1 state1 statename1 y2
> x2 city2 state2 statename2 node suspect
>
>
> 1 . . . . .
> 0
>
> 2 . . . . .
> 0
>
> 3 . . . .
> A 0
>
> 4 . . . .
> A 0
>
> 5 . . . .
> A 0
>
> 6 . . . .
> A 0
>
> Thanks,
>
> Gerry
>
>
|