I would like to do some sales analysis based on despatching depot and customer delivery location (destination), displayed on a map with the depots and destinations linked.
I have a measure for volume sold for each customer, lat/longs for each customer and lat/longs for each depot.
Is it possible to use PROC GMAP to create a network diagram on a map?
Thanks in advance
Proc GMAP allows you to do what you want using annotate data sets.
Proc SGMAP will probably look better, but I don't think it allows superposition of arrows.
You can fool it into drawing connecting lines by using the SERIES statement.
[Edit: That's what Robert does below]
Here's an example using SAS/Graph's Proc Gmap and annotate:
I'll see if I can convert it to Proc SGmap (so users who don't have SAS/Graph can create something similar).
Here's a similar map created with Proc SGmap (which is in Base SAS). You should be able to do all the graphical stuff with 9.4m6, but if you want the custom mouse-over text and drilldown capability you'll need the very recently-released Viya 3.5.
Map with mouse-over text and drilldowns:
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.