BookmarkSubscribeRSS Feed
AAWTomHanks
Calcite | Level 5


So I'm not really sure if a loop is the best approach but I need some help. I have data, which varries, with a list of zips and their corresponding x and y coordinates, these are going to be points on a map. Now if I have two of the same zip their x and y will be the same and I want to move them so the points on the map are not overlapping. Also I could have more than two zips that are the same in some cases I sometimes have 5. I know how to move them with respect to zips but then when I move the coordinates they still overlap sometimes. I need help to make sure nothing is overlapping. Any suggestions? Thanks.

1 REPLY 1
MikeZdeb
Rhodochrosite | Level 12

Hi ...

#1  you could try jittering (offset the points), lots of references including ... http://support.sas.com/kb/24/923.html

#2  or how about just using a different size symbol (or different symbols) that varies in size (or type) by the number of whatever at any given location.

#3  or, I assume you add symbols to a map with annotate.  If' I'm correct, the POSITION variable has 15 distinct values for any set of x/y coordinates.  So maybe just varying the value of POSITION will allow you to avoid overlap

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 624 views
  • 0 likes
  • 2 in conversation