I am trying to use the map mapsgfk.Us which has AK and HI in the lower left. How do I go about plotting an annotate data set with normal X Y coordinates onto that? Some of those points are in AK and HI, so I want them to appear on the modified location of that map. An example would be helpful.
If city centroids would be close enough for your points, you could use the x/y coordinates in mapsgfk.uscity, and annotate those onto mapsgfk.us.
The 'tricky' part about mapsgfk.us is that Alaska and Hawaii are moved, resized, and projected differently than the 48 contiguous states. Therefore, in order for you to annotate your own arbitrary lat/long coordinates onto mapsgfk.us, you would need to know exactly how to move, resize, and project the coordinates.
I've found that the easiest way to do that is to "create my own" US map, with Alaska & Hawaii moved/resized/projected the way I want them, and then I know what values to apply to my annotated lat/long. Here is one example where I've done that:
http://robslink.com/SAS/democd75/best_restaurants_2014_info.htm
Please define what you mean by "normal X Y" coordinates in this sense.
With the scale of that map I would be tempted, if at all practical, to find the location of the nearest city in the USCity data set and use the coordinates from that for the annotate X Y coordinates.
If city centroids would be close enough for your points, you could use the x/y coordinates in mapsgfk.uscity, and annotate those onto mapsgfk.us.
The 'tricky' part about mapsgfk.us is that Alaska and Hawaii are moved, resized, and projected differently than the 48 contiguous states. Therefore, in order for you to annotate your own arbitrary lat/long coordinates onto mapsgfk.us, you would need to know exactly how to move, resize, and project the coordinates.
I've found that the easiest way to do that is to "create my own" US map, with Alaska & Hawaii moved/resized/projected the way I want them, and then I know what values to apply to my annotated lat/long. Here is one example where I've done that:
http://robslink.com/SAS/democd75/best_restaurants_2014_info.htm
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.