Presentation is loading. Please wait.

Presentation is loading. Please wait.

Producing Maps with SAS Enterprise Guide

Similar presentations


Presentation on theme: "Producing Maps with SAS Enterprise Guide"— Presentation transcript:

1 Producing Maps with SAS Enterprise Guide
Harmon L. Jolley

2 Introduction SAS 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_.

3 In ZIP Code? Time to Digress for a Trivia Question:
What does the acronym ZIP stand for In ZIP Code?

4 Answer: The Zone Improvement Plan of the early 1960’s defined 5-digit postal codes to replace 1-digit codes. Example: Chattanooga 9, Tenn. became Chattanooga, TN 37409 Mr. ZIP

5 We now rejoin the presentation that was in progress.

6 Step 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.

7 Step 1 – Example In 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.

8

9

10

11 Step 2 – Produce Map Select 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.

12 Step 2 – Example In 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.

13

14

15

16

17 Step 2 – Example The 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.

18

19

20

21

22

23 Step 3 – Enhance Results You 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.

24

25

26 Step 4 – Publish Results SAS EG has many formats available in the Export function. PDF and HTML are good choices for maps.

27 Step 4 – Publish Results SAS EG has many formats available in the Export function. PDF and HTML are good choices for maps.

28 Right-click on the Map object, then Properties | Results to set the Report Format.

29 Harmon Jolley jolleyh@bellsouth.net
Contact Information Harmon Jolley


Download ppt "Producing Maps with SAS Enterprise Guide"

Similar presentations


Ads by Google