Presentation on theme: "Producing Maps with SAS Enterprise Guide"— Presentation transcript:
1Producing Maps with SAS Enterprise Guide Harmon L. Jolley
2IntroductionSAS Enterprise Guide has a wizard (Graph|Map) to plot data onto a map.SAS/GRAPH is a required product for maps.SAS/GRAPH includes SAS datasets that contain geographic data such as ZIP and FIPS codes.An important variable for mapping is _MAP_GEOMETRY_.
3In ZIP Code? Time to Digress for a Trivia Question: What does the acronym ZIP stand forIn ZIP Code?
4Answer:The Zone Improvement Plan of the early 1960’s defined 5-digit postal codes to replace 1-digit codes.Example:Chattanooga 9, Tenn.becameChattanooga, TN 37409Mr. ZIP
5We now rejointhe presentationthat was in progress.
6Step 1 – Prepare Data Identify appropriate map in the MAPS library. Select Data | Filter and Query from the SAS EG drop-down menu bar.Select the analysis variable from your data.Select other variables of interest.Join your data to MAPS dataset(s).Filter the data to achieve result.
7Step 1 – ExampleIn the following example, the Prepare Data process flow was created by using Data | Filter and Query.The input datasets (USCITY, US2, and CNTYNAME) are found in the standard MAPS library of SAS/GRAPH.The input datasets in the example provide both the analysis variable (POP or population) and the geocoding variable _MAP_GEOMETRY_.There are three SAS datasets joined, but no Filter or Sorting.
11Step 2 – Produce MapSelect Map | Graph from the SAS EG drop-down menu bar.Select the type of map.Assign the analysis variable to Column to Chart.Review the Appearance and Title section, and make changes as needed.
12Step 2 – ExampleIn the next process flow of the example, a United States map was produced to show population levels by state.Under Graph | Map, a 2d choropleth map was selected.The population is assigned to the role Column to Chart, and the _MAP_GEOMETRY_ variable is assigned to map geometry.
17Step 2 – ExampleThe following State View process flow allows the user to select a state, then display a map of that state’s data.The selection function was constructed using the Parameters of SAS EG.
23Step 3 – Enhance ResultsYou can create a Code object, then edit to add SAS/GRAPH code to add functions not supported in the SAS EG map wizard.Right-click on the Map object, then select Add as Code Template.